Removed line setting title because title won't be part of actionMap in the future
This commit is contained in:
parent
109ef54479
commit
2c5e2286b1
@ -28,7 +28,6 @@ public typealias ButtonBlock = (Button) -> Void
|
||||
self.actionMap = actionMap
|
||||
self.titleLabel?.numberOfLines = 0
|
||||
self.titleLabel?.lineBreakMode = .byWordWrapping
|
||||
setTitle(actionMap?.stringForkey(KeyTitle), for: .normal)
|
||||
|
||||
if let actionMap = self.actionMap,
|
||||
let disableButtonAsAny = actionMap[KeyDisableButton],
|
||||
|
||||
@ -119,6 +119,10 @@ open class CaretButton: Button, MVMCoreUIMoleculeViewProtocol, MVMCoreUIViewCons
|
||||
|
||||
guard let dictionary = json else { return }
|
||||
|
||||
if let title = dictionary.optionalStringForKey(KeyTitle) {
|
||||
setTitle(title, for: .normal)
|
||||
}
|
||||
|
||||
if let backgroundColorHex = dictionary[KeyBackgroundColor] as? String {
|
||||
backgroundColor = UIColor.mfGet(forHex: backgroundColorHex)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user