Moved out.
This commit is contained in:
parent
e674fe4d94
commit
6b983d2f69
@ -74,9 +74,6 @@ public typealias ButtonBlock = (Button) -> ()
|
|||||||
public func setWithActionMap(_ actionMap: [AnyHashable: Any]?, delegateObject: MVMCoreUIDelegateObject?, additionalData: [AnyHashable: Any]?) {
|
public func setWithActionMap(_ actionMap: [AnyHashable: Any]?, delegateObject: MVMCoreUIDelegateObject?, additionalData: [AnyHashable: Any]?) {
|
||||||
self.actionMap = actionMap
|
self.actionMap = actionMap
|
||||||
|
|
||||||
titleLabel?.numberOfLines = 0
|
|
||||||
titleLabel?.lineBreakMode = .byWordWrapping
|
|
||||||
|
|
||||||
buttonDelegate = delegateObject?.buttonDelegate
|
buttonDelegate = delegateObject?.buttonDelegate
|
||||||
|
|
||||||
addBlock(event: .touchUpInside) { [weak self] sender in
|
addBlock(event: .touchUpInside) { [weak self] sender in
|
||||||
@ -122,6 +119,8 @@ extension Button: MVMCoreViewProtocol {
|
|||||||
|
|
||||||
translatesAutoresizingMaskIntoConstraints = false
|
translatesAutoresizingMaskIntoConstraints = false
|
||||||
insetsLayoutMarginsFromSafeArea = false
|
insetsLayoutMarginsFromSafeArea = false
|
||||||
|
titleLabel?.numberOfLines = 0
|
||||||
|
titleLabel?.lineBreakMode = .byWordWrapping
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user