Changed to MVMCoreUIDelegateObject

This commit is contained in:
Robinson, Blake 2019-12-19 10:35:11 -05:00
parent 6cf4ba0594
commit 1de7618e5c

View File

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