Skip to content

Commit 16db05a

Browse files
committed
Fix Swift 6 compilation error for UIWindowSceneGeometryPreferences
- Replace deprecated UIWindowSceneGeometryPreferencesIOS with the Swift 6 compatible UIWindowSceneGeometryPreferences.iOS. Xcode 16.4 on the GitHub runner rejects the old name.
1 parent 97f9494 commit 16db05a

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 = UIWindowSceneGeometryPreferencesIOS(interfaceOrientations: mask)
353+
let preferences = UIWindowSceneGeometryPreferences.iOS(interfaceOrientations: mask)
354354
scene.requestGeometryUpdate(preferences) { error in
355355
NSLog("@@PAD_LAYOUT@@ orientation request failed: %@", error.localizedDescription)
356356
}

0 commit comments

Comments
 (0)