@lordandrei - I regard this as an error in the original video.
@novistream posted a link to explain why it worked differently on iOS before, and now they’ve fixed it on iOS 11:
https://forums.developer.apple.com/message/180131#180131
@bababoega posted the fix above:
In viewDidLoad()
, right below metalView.clearColor = Colors.wenderlichGreen
, add:
metalView.depthStencilPixelFormat = .depth32Float
Also, in Renderable.swift, below pipelineDescriptor.vertexDescriptor = vertexDescriptor
,
add
pipelineDescriptor.depthAttachmentPixelFormat = .depth32Float
Thanks for your help, guys