Category Archives: Swift

Implementing a 360º Video Viewer with SpriteKit and SceneKit

A few days ago I published a post that showed how, with relatively little code, you could create a primitive 360º panoramic photo viewer in SceneKit. In this mini-post I am going to show how by adding SpriteKit and a … Continue reading

Posted in Code, Swift | Tagged , , , | Leave a comment

Taming Foundation Constants into Swift Enums

For most of Cocoa, Apple has done a nice job of wrapping the APIs in native Swift entities. In particular, sets of constants that exist in NS_ENUM enumerations are imported as Swift enums with associated raw values. The situation is … Continue reading

Posted in Swift | 1 Comment

Swift Parameter Labels

I am guessing early on in the development of the Swift language the relationship between a function declaration’s parameter labels and whether they need to be included in a call was much more forward. Maybe it looked something like this. … Continue reading

Posted in Swift | Leave a comment