Make sure you import ARKit at the top of your swift file, the different AR configurations aren't included in just RealityKit:
swift
import ARKit
Topic:
Spatial Computing
SubTopic:
ARKit
Tags: