Closed OrkhanAlikhanov closed 6 years ago
let json = GraphJSON(...) guard let firstName = json.user?.name?.first?.asString else { return }
Above can be reduced to:
guard let firstName = json.user.name.first.asString else { return }
We can continue to use asX anyways which returns Optional
asX
Optional
Fixed in https://github.com/CosmicMind/Graph/pull/146
Above can be reduced to:
We can continue to use
asX
anyways which returnsOptional