Category: swift "optional chaining" Dictionary
-
Optional chaining with dictionaries (in Swift)
Whilst learning Swift and SpriteKit I came across an issue with the documentation for SKNode.userData. In an early XCode beta it was specified as an implicitly unwrapped optional whereas now it is clearly an optional. Therefore the code I origina…
-
Optional chaining with dictionaries (in Swift)
Whilst learning Swift and SpriteKit I came across an issue with the documentation for SKNode.userData. In an early XCode beta it was specified as an implicitly unwrapped optional whereas now it is clearly an optional. Therefore the code I origina…