Hi, I am new to iOS and swift language and learning programming ARkit. When I am studing by looking at apple's ARkitBasic example code, I have a question about the delege of sceneView.
In the code,
class ViewController: UIViewController, ARSCNViewDelegate, ARSessionDelegate {
override func viewDidAppear(_ animated: Bool) {
// start ARsession
// Set a delegate to track the number of plane anchors for providing UI feedback.
sceneView.session.delegate = self
}
}
My question is that why there is no such line as "sceneView.delegate = self" like the one for session.delegate. Could anyone help to explain? Thanks.