making few objects open to use in MF

This commit is contained in:
Khan, Arshad 2020-06-10 00:30:52 +05:30
parent 9119a1e6c6
commit 18f146f668

View File

@ -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