If you use ARImageTrackingConfiguration then the cards need to completely visible in the camera feed. If you use ARWorldTrackingConfiguration then your content is placed relative to the detected portion of the real world, meaning that your video will display in the same place even if the found image anchor is not visible in the camera feed. That would be the first thing to try.
let worldConfig = ARWorldTrackingConfiguration()
worldConfig.detectionImages = detectionImages(for: viewModel.detectionImage, width: viewModel.width)
worldConfig.isAutoFocusEnabled = true
worldConfig.maximumNumberOfTrackedImages = 4
worldConfig.isLightEstimationEnabled = true
Topic:
Spatial Computing
SubTopic:
ARKit
Tags: