hello Apple here i am showing my code , total images is arond 1000 in Array
for i in 0..<self.localItems.count{
let dict = self.localItems[i]
let name = dict["markername"] as? String
DispatchQueue.main.async {
let image = dict["markerimg"] as! UIImage
guard let cgIMG = image.cgImage else{
print("error got here")
return
}
print(cgIMG)
let arImg = ARReferenceImage(cgIMG, orientation: .up, physicalWidth: 0.2)
arImg.name = name
arImg.validate { (error) in
if(error == nil){
}
else{
print(error?.localizedDescription ?? "")
}
}
printℹ
}
}
please give me any solution for this ,Thanks in advance