model driven gone

This commit is contained in:
Pfeil, Scott Robert 2019-09-23 12:25:49 -04:00
parent 0bb3c8a719
commit a0f9470c27

View File

@ -26,7 +26,7 @@ public class StackItem {
} }
func update(with json: [AnyHashable: Any]?) { func update(with json: [AnyHashable: Any]?) {
gone = (json == nil) gone = json?.boolForKey("gone") ?? (json == nil)
spacing = json?.optionalCGFloatForKey("spacing") spacing = json?.optionalCGFloatForKey("spacing")
percentage = json?["percent"] as? Int percentage = json?["percent"] as? Int
if let alignment = json?.stringOptionalWithChainOfKeysOrIndexes([KeyMolecule,"verticalAlignment"]) { if let alignment = json?.stringOptionalWithChainOfKeysOrIndexes([KeyMolecule,"verticalAlignment"]) {