Skip to content

Commit

Permalink
Update Application/Sources/Bridges/SwiftMessagesBridge.swift
Browse files Browse the repository at this point in the history
Co-authored-by: Samuel Défago <[email protected]>
  • Loading branch information
mutaben and defagos authored Nov 19, 2024
1 parent 4b87c95 commit 91fc63d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Application/Sources/Bridges/SwiftMessagesBridge.swift
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,9 @@ final class SwiftMessagesBridge: NSObject {

if #available(iOS 18.0, *), UIDevice.current.userInterfaceIdiom == .pad {
config.presentationContext = .window(windowLevel: .normal)
} else {
if let presentationController {
config.presentationContext = .viewController(presentationController)
}
}
else if let presentationController {
config.presentationContext = .viewController(presentationController)
}

// Remark: VoiceOver is supported natively, but with the system language (not the one we might set on the
Expand Down

0 comments on commit 91fc63d

Please sign in to comment.