DeepARSDK / quickstart-ios-swift

DeepAR SDK for iOS example project
https://developer.deepar.ai
MIT License
23 stars 9 forks source link

not an issue - but consider supporting ios12 out of the box #1

Closed 8secz-johndpope closed 4 years ago

8secz-johndpope commented 4 years ago
@objc
private func orientationDidChange() {
    if #available(iOS 13.0, *) {
        guard let orientation = UIApplication.shared.windows.first?.windowScene?.interfaceOrientation else { return }
        // called to reinitialize the engine with the new camera and rendering resolution
              arView.change(orientation)
    } else {
        // Fallback on earlier versions
    }

}