1 Reply
      Latest reply on Oct 1, 2019 8:42 AM by gchiste
      ramakrishnafromproddatur Level 1 Level 1 (0 points)

        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