making few objects open to use in MF
This commit is contained in:
parent
9119a1e6c6
commit
18f146f668
@ -8,9 +8,9 @@
|
|||||||
|
|
||||||
public typealias BarButtonAction = (BarButtonItem) -> ()
|
public typealias BarButtonAction = (BarButtonItem) -> ()
|
||||||
|
|
||||||
@objc class ActionDelegate: NSObject {
|
@objc open class ActionDelegate: NSObject {
|
||||||
var buttonAction: BarButtonAction?
|
open var buttonAction: BarButtonAction?
|
||||||
@objc func callActionBlock(_ sender: BarButtonItem) {
|
@objc open func callActionBlock(_ sender: BarButtonItem) {
|
||||||
buttonAction?(sender)
|
buttonAction?(sender)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -22,7 +22,7 @@ public typealias BarButtonAction = (BarButtonItem) -> ()
|
|||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
|
|
||||||
open weak var buttonDelegate: ButtonDelegateProtocol?
|
open weak var buttonDelegate: ButtonDelegateProtocol?
|
||||||
var actionDelegate: ActionDelegate?
|
open var actionDelegate: ActionDelegate?
|
||||||
|
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
// MARK: - Methods
|
// MARK: - Methods
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user