diff --git a/.package.resolved b/.package.resolved index ac4380140..12a182b2c 100644 --- a/.package.resolved +++ b/.package.resolved @@ -150,7 +150,7 @@ "location" : "https://github.com/Ambrdctr/SQRichTextEditor", "state" : { "branch" : "master", - "revision" : "739cf6a03daf78cd0bfd91449163f81a30b90b07" + "revision" : "0031e929633941ac0f63aee5759e1afb8b1dd8c1" } }, { diff --git a/Mail/Views/Onboarding/OnboardingView.swift b/Mail/Views/Onboarding/OnboardingView.swift index ed27a980e..1cc095243 100644 --- a/Mail/Views/Onboarding/OnboardingView.swift +++ b/Mail/Views/Onboarding/OnboardingView.swift @@ -118,8 +118,12 @@ struct OnboardingView: View { } .onAppear { if UIDevice.current.userInterfaceIdiom == .phone { - UIDevice.current - .setValue(UIInterfaceOrientation.portrait.rawValue, forKey: "orientation") + if #available(iOS 16.0, *) { + window?.windowScene?.requestGeometryUpdate(.iOS(interfaceOrientations: .portrait)) + } else { + UIDevice.current + .setValue(UIInterfaceOrientation.portrait.rawValue, forKey: "orientation") + } AppDelegate.orientationLock = .portrait } }