From 2e3711b869a27afe4bf0e38cd1b16821cbd6df59 Mon Sep 17 00:00:00 2001 From: Nicolas Mauri Date: Wed, 23 Aug 2023 16:38:51 +0200 Subject: [PATCH] Fix OIDC support for iOS 17 (#1550) --- .../View/ServerConfirmationScreen.swift | 2 +- .../Authentication/SoftLogoutScreen/View/SoftLogoutScreen.swift | 2 +- .../Screens/Settings/SettingsScreen/View/SettingsScreen.swift | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ElementX/Sources/Screens/Authentication/ServerConfirmationScreen/View/ServerConfirmationScreen.swift b/ElementX/Sources/Screens/Authentication/ServerConfirmationScreen/View/ServerConfirmationScreen.swift index 5444d9957..6ca3c27bd 100644 --- a/ElementX/Sources/Screens/Authentication/ServerConfirmationScreen/View/ServerConfirmationScreen.swift +++ b/ElementX/Sources/Screens/Authentication/ServerConfirmationScreen/View/ServerConfirmationScreen.swift @@ -27,7 +27,7 @@ struct ServerConfirmationScreen: View { } .background() .environment(\.backgroundStyle, AnyShapeStyle(Color.compound.bgCanvasDefault)) - .introspect(.window, on: .iOS(.v16)) { window in + .introspect(.window, on: .iOS(.v16, .v17)) { window in context.send(viewAction: .updateWindow(window)) } } diff --git a/ElementX/Sources/Screens/Authentication/SoftLogoutScreen/View/SoftLogoutScreen.swift b/ElementX/Sources/Screens/Authentication/SoftLogoutScreen/View/SoftLogoutScreen.swift index a5ab9dfd6..9731cf67c 100644 --- a/ElementX/Sources/Screens/Authentication/SoftLogoutScreen/View/SoftLogoutScreen.swift +++ b/ElementX/Sources/Screens/Authentication/SoftLogoutScreen/View/SoftLogoutScreen.swift @@ -49,7 +49,7 @@ struct SoftLogoutScreen: View { } .background(Color.compound.bgCanvasDefault.ignoresSafeArea()) .alert(item: $context.alertInfo) - .introspect(.window, on: .iOS(.v16)) { window in + .introspect(.window, on: .iOS(.v16, .v17)) { window in context.send(viewAction: .updateWindow(window)) } } diff --git a/ElementX/Sources/Screens/Settings/SettingsScreen/View/SettingsScreen.swift b/ElementX/Sources/Screens/Settings/SettingsScreen/View/SettingsScreen.swift index 696616a5f..7faaf5bd8 100644 --- a/ElementX/Sources/Screens/Settings/SettingsScreen/View/SettingsScreen.swift +++ b/ElementX/Sources/Screens/Settings/SettingsScreen/View/SettingsScreen.swift @@ -46,7 +46,7 @@ struct SettingsScreen: View { doneButton } } - .introspect(.window, on: .iOS(.v16)) { window in + .introspect(.window, on: .iOS(.v16, .v17)) { window in context.send(viewAction: .updateWindow(window)) } }