Skip to content

Commit 45eb035

Browse files
committed
Fix Swift 6 naming for UIWindowSceneGeometryPreferencesIOS
- Try UIWindowScene.GeometryPreferencesIOS as the Swift 6 type name for the orientation request helper, following the compiler rename chain.
1 parent 16db05a commit 45eb035

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/main/swift/Views/Settings/PadLayoutEditView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ private func requestOrientation(_ mask: UIInterfaceOrientationMask) {
350350
if #available(iOS 16.0, *) {
351351
for case let scene as UIWindowScene in UIApplication.shared.connectedScenes {
352352
guard scene.activationState == .foregroundActive || scene.activationState == .foregroundInactive else { continue }
353-
let preferences = UIWindowSceneGeometryPreferences.iOS(interfaceOrientations: mask)
353+
let preferences = UIWindowScene.GeometryPreferencesIOS(interfaceOrientations: mask)
354354
scene.requestGeometryUpdate(preferences) { error in
355355
NSLog("@@PAD_LAYOUT@@ orientation request failed: %@", error.localizedDescription)
356356
}

0 commit comments

Comments
 (0)