Moved out.

This commit is contained in:
Kevin G Christiano 2020-01-09 14:11:50 -05:00
parent e674fe4d94
commit 6b983d2f69

View File

@ -74,9 +74,6 @@ public typealias ButtonBlock = (Button) -> ()
public func setWithActionMap(_ actionMap: [AnyHashable: Any]?, delegateObject: MVMCoreUIDelegateObject?, additionalData: [AnyHashable: Any]?) {
self.actionMap = actionMap
titleLabel?.numberOfLines = 0
titleLabel?.lineBreakMode = .byWordWrapping
buttonDelegate = delegateObject?.buttonDelegate
addBlock(event: .touchUpInside) { [weak self] sender in
@ -122,6 +119,8 @@ extension Button: MVMCoreViewProtocol {
translatesAutoresizingMaskIntoConstraints = false
insetsLayoutMarginsFromSafeArea = false
titleLabel?.numberOfLines = 0
titleLabel?.lineBreakMode = .byWordWrapping
}
}