Wednesday, October 14, 2026
HomeiOS DevelopmentRealityKit in Deployment goal under iOS 13

RealityKit in Deployment goal under iOS 13

[ad_1]

  1. set the undertaking deployment goal under iOS 13
  2. import RealityKit and write add code " @accessible(iOS 13.0, *) " in UIViewController class
  3. init a Entity class or ModelEntity class ( let _ = Entity() )
  4. begin to run the undertaking and it’ll crash in iOS 13 and iOS 14 however iOS 15 is OK, very unusual (you may run my demo)
import UIKit
import RealityKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        tremendous.viewDidLoad()
        // Do any extra setup after loading the view.
        if #accessible(iOS 13.0, *) {
            Entity()
        } else {
            // Fallback on earlier variations
        }
    }


}
 

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments