New (!!) on Metal By Example: Writing a Modern Metal App from Scratch (Part 1) http://metalbyexample.com/modern-metal-1/ Same teapot, new language.
-
-
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 -
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.
Next installment needs some Unsafe* types.