Upvote:2

Aprove answer
let referenceImages = ARReferenceImage.init(cgImage!, orientation: CGImagePropertyOrientation.up, physicalWidth: 100)

Upvote:2

let referenceImage = ARReferenceImage(cgImage, orientation: .up, physicalWidth: 100)

Credit Goes to: stackoverflow.com

Related question with same questions but different answers