Changed to MVMCoreUIDelegateObject
This commit is contained in:
parent
6cf4ba0594
commit
1de7618e5c
@ -24,14 +24,12 @@ public typealias ButtonBlock = (Button) -> Void
|
||||
buttonBlock(self)
|
||||
}
|
||||
|
||||
public func setWithActionMap(_ actionMap: [AnyHashable: Any]?, delegateObject: DelegateObject?, additionalData: [AnyHashable: Any]?) {
|
||||
public func setWithActionMap(_ actionMap: [AnyHashable: Any]?, delegateObject: MVMCoreUIDelegateObject?, additionalData: [AnyHashable: Any]?) {
|
||||
self.actionMap = actionMap
|
||||
self.titleLabel?.numberOfLines = 0
|
||||
self.titleLabel?.lineBreakMode = .byWordWrapping
|
||||
|
||||
if let mVMCoreUIDelegateObject = delegateObject as? MVMCoreUIDelegateObject {
|
||||
self.buttonDelegate = mVMCoreUIDelegateObject.buttonDelegate
|
||||
}
|
||||
buttonDelegate = delegateObject?.buttonDelegate
|
||||
|
||||
self.addBlock({ [weak self] (sender) in
|
||||
guard let self = self,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user