Skip to content

Commit

Permalink
fix availability of method access
Browse files Browse the repository at this point in the history
  • Loading branch information
Ragaie alfy authored and Ragaie alfy committed Jan 15, 2018
1 parent 9d5bf31 commit e604912
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 12 deletions.
2 changes: 2 additions & 0 deletions ActionSheetBottom-Chtar.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
81CE8C20200759F4009DA082 /* SheetPicker.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SheetPicker.swift; sourceTree = "<group>"; };
81CE8C2420076EC4009DA082 /* DatePicker.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = DatePicker.xib; sourceTree = "<group>"; };
81CE8C2520076EC4009DA082 /* DatePicker.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DatePicker.swift; sourceTree = "<group>"; };
81F1028A200CBE1400CDE732 /* ChtarBottomSheet.podspec */ = {isa = PBXFileReference; lastKnownFileType = text; path = ChtarBottomSheet.podspec; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand All @@ -70,6 +71,7 @@
811777EA1F1F7EBB001FA155 = {
isa = PBXGroup;
children = (
81F1028A200CBE1400CDE732 /* ChtarBottomSheet.podspec */,
81F1026A200CAB4100CDE732 /* Library files */,
8117780D1F1F81D9001FA155 /* screen shot */,
811778081F1F7EC3001FA155 /* pickerList-comm */,
Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion Library files/CustomPicker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class CustomPicker: UIView {

self.frame = basketTopFrame
}, completion: { finished in
print("Ragaie doors opened!")
// print("Ragaie doors opened!")
})

showFlage = true
Expand Down
6 changes: 3 additions & 3 deletions Library files/DatePicker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public class DatePicker: UIView {
basketTopFrame.origin.y -= 200
self.frame = basketTopFrame
}, completion: { finished in
print("Ragaie doors opened!")
// print("Ragaie doors opened!")
})
showFlage = true
}
Expand All @@ -162,15 +162,15 @@ public class DatePicker: UIView {
}, completion: { finished in
self.plurView.removeFromSuperview()
self.self.removeFromSuperview()
print("view removed !")
// print("view removed !")

})
showFlage = false
}



func selectItem(_ sender: UIButton) -> Void {
@objc func selectItem(_ sender: UIButton) -> Void {
if delegate != nil {
delegate.DatePicker(self, didSelectDate: datePicker.date)
}
Expand Down
2 changes: 1 addition & 1 deletion Library files/PickerList.swift
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ extension UIResponder {

self.frame = basketTopFrame
}, completion: { finished in
print("Ragaie doors opened!")
// print("Ragaie doors opened!")
})

showFlage = true
Expand Down
14 changes: 7 additions & 7 deletions Library files/SheetPicker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class SheetPicker: NSObject{



init(datePickerWithBlock doneText : String,mode : UIDatePickerMode ,local : Locale, onCompletion: @escaping((_ date:Date) -> Void)) {
public init(datePickerWithBlock doneText : String,mode : UIDatePickerMode ,local : Locale, onCompletion: @escaping((_ date:Date) -> Void)) {
let datePicker = DatePicker.init(frame: CGRect.init(x: 0, y: UIScreen.main.bounds.height, width: UIScreen.main.bounds.width, height: 200))
datePicker.doneBlock = onCompletion
// datePicker.cancelBlock = onCancel
Expand All @@ -36,7 +36,7 @@ public class SheetPicker: NSObject{
}


init(datePickerWithDelegate doneText : String,mode : UIDatePickerMode ,local : Locale,delegate : SheetPickerDateDelegate) {
public init(datePickerWithDelegate doneText : String,mode : UIDatePickerMode ,local : Locale,delegate : SheetPickerDateDelegate) {
super.init()
let datePicker = DatePicker.init(frame: CGRect.init(x: 0, y: UIScreen.main.bounds.height, width: UIScreen.main.bounds.width, height: 200))
datePicker.delegate = delegate
Expand All @@ -49,7 +49,7 @@ public class SheetPicker: NSObject{
}


init(sheetPickerWithdelegate doneText : String , delegate: SheetPickerDelegate,dataSource : [String]) {
public init(sheetPickerWithdelegate doneText : String , delegate: SheetPickerDelegate,dataSource : [String]) {

let actionPicker = PickerList.init(frame: CGRect.init(x: 0, y: UIScreen.main.bounds.height, width: UIScreen.main.bounds.width, height: 200))
actionPicker.dataSourceItem = dataSource
Expand All @@ -60,7 +60,7 @@ public class SheetPicker: NSObject{
}


init(sheetPickerWithdblock doneText : String ,dataSource : [Any], onCompletion: @escaping ((_ index:Int) -> Void)) {
public init(sheetPickerWithdblock doneText : String ,dataSource : [Any], onCompletion: @escaping ((_ index:Int) -> Void)) {

let actionPicker = PickerList.init(frame: CGRect.init(x: 0, y: UIScreen.main.bounds.height, width: UIScreen.main.bounds.width, height: 200))
actionPicker.dataSourceItem = dataSource
Expand All @@ -73,7 +73,7 @@ public class SheetPicker: NSObject{



init(CustomePickerWithdblock doneText : String ,customView : UIView,height : Int) {
public init(CustomePickerWithdblock doneText : String ,customView : UIView,height : Int) {

customPicker = CustomPicker.init(frame: CGRect.init(x: 0, y: UIScreen.main.bounds.height,width: UIScreen.main.bounds.width, height: 200))
customPicker.customViewToShow = customView
Expand All @@ -83,13 +83,13 @@ public class SheetPicker: NSObject{
//actionPicker.show()
}

func show(){
public func show(){

customPicker.show()


}
func dismiss(){
public func dismiss(){

customPicker.dismissView()

Expand Down

0 comments on commit e604912

Please sign in to comment.