On page 300 in chapter 15 the user is instructed to add the following method:
func createFaceGeometry() {
updateMessage(text: "Creating face geometry.")
let device = sceneView.device!
let maskGeometry = ARSCNFaceGeometry(device: device)!
mask = Mask(geometry: maskGeometry, maskType: maskType)
}
There is an error on the let device
line indicating that ARSCNView has no member named device
. I checked the final version of the project and that one also does not build because of the same issue.
I am on Xcode 9.4. Thanks.
Janie