Jan 5 2017
Application Design: Enums (with bonus tuple)
In the zoom example app, to make life easier for me, I went for a cyclical zoom: 2x magnification, 3x magnification, 1x magnification. When Apple first announced Swift, I liked many things about it, but the thing that made me swoon was enums. Swift enums are wonderful tools to shape your application flow. Here, we […]
May 22 2018
Problem solving: The strange case of the scrolling SpriteKit View
(Xcode 9.3; macOS 10.12.6, Swift 4) If you want a challenge, I recommend you try to implement ‘scrolling SpriteKitView’ yourself before you read the rest of this article. Update (and spoiler): Due to a bug in InterfaceBuilder’s ‘SKView’, you need to use a ‘custom View’ (NSView) in Interface Builder, and change its type to SKView. […]
By Extelligent Cocoa • Bug Reports, Coding Meta, Interface, SpriteKit • • Tags: NSScrollView, SKView