Warren writing Swift! There were as many implicitly unwrapped optionals as I expected.
Next installment needs some Unsafe* types.
-
-
-
How do you avoid IUOs in your view controller interfaces? Genuine question
-
Definitely can't sometimes. I prefer initializing properties directly like `let mtlView = MTLView()` rather than have an IUO and init in viewDidLoad if possible.
-
Lazy properties are a great option too
Gives you the deferred loading you usually want in VCs, while still getting rid of "Non-optional optionals":
lazy var mltView = MTLView() -
I have, over the past four years, developed a rather nuanced opinion about this, I think. Obj-C is probably too lax about this. But Swift is definitely too strict about it, in ways that are distracting and detrimental.
End of conversation
New conversation -
-
-
Just finished porting all of
@unbound_io’s PlayEngine to OSX. Hit a wall with OpenGL 4.1. Even with the Nvidia Web Driver. Can you please do the Metal port for us Warren :-) -
Would love to help. Reach out to warren@fourspace.co. Though, don’t have access to Nvidia hardware or any eGPU for the rest of the month.
-
Let's chat when we're all back in SF.
-
Deal. I’ll be back 1 Sept. Or we can meet up at SIGGRAPH?
-
Not gonna make it to SIGGRAPH this year. Looking forward though!
End of conversation
New conversation -
-
-
Happy to see new posts! less happy about the Swift

-
You can please some of the people some of the time.
End of conversation
New conversation -
-
-
Great job as always Warren! Let’s get lunch at Apple Park sometime.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.