arView problems

Hi,

Xcode gives me an error when I try to connect automaticallyConfigureSession with arView., it also can't find ARWorldTrackingConfiguration in configuration. Someone an idea of what I'm doing wrong?


>     override func viewDidAppear( _ animated: Bool){
>
>        super.viewDidAppear(animated)
>
>        setupARView()
>
>    }
>
>    // MARK: Setup Methodes
>
>    func setupARView() {
>
>        arView.automaticallyConfigureSession = false
>
>      let configuration = ARWorldTrackingconfiguration()
>
>        configuration.planeDetection = [.horizontal, .vertical]
>
>        configuration.eviromentTexturing = .automatic
>
>      arView.session.run(configuration)
>
>    }
>
> }
Make sure you import ARKit at the top of your swift file, the different AR configurations aren't included in just RealityKit:

Code Block swift
import ARKit

arView problems
 
 
Q