Changed to optionalStringForKey
This commit is contained in:
parent
87613fb375
commit
e11f64f0a4
@ -100,7 +100,9 @@ extension Link: MVMCoreUIMoleculeViewProtocol {
|
|||||||
|
|
||||||
titleLabel?.numberOfLines = 0
|
titleLabel?.numberOfLines = 0
|
||||||
titleLabel?.lineBreakMode = .byWordWrapping;
|
titleLabel?.lineBreakMode = .byWordWrapping;
|
||||||
setTitle(unwrappedJson.stringForkey(KeyTitle), for: .normal)
|
if let title = unwrappedJson.optionalStringForKey(KeyTitle) {
|
||||||
|
setTitle(title, for: .normal)
|
||||||
|
}
|
||||||
|
|
||||||
if let enabled = unwrappedJson[KeyEnabled] as? Bool {
|
if let enabled = unwrappedJson[KeyEnabled] as? Bool {
|
||||||
isEnabled = enabled
|
isEnabled = enabled
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user