Skip to content

Commit

Permalink
Remove bluetooth permission screen for Mac Catalyst (#3381)
Browse files Browse the repository at this point in the history
  • Loading branch information
bgoncal authored Jan 30, 2025
1 parent f38dd6b commit bf791b5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/App/WebView/WebViewExternalMessageHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,8 @@ final class WebViewExternalMessageHandler {
improvManager.delegate = self
improvManager.scan()
default:
// Mac Catalyst doesn't trigger bluetooth permission for some reason
guard !Current.isCatalyst else { return }
let bluetoothPermissionView = UIHostingController(rootView: BluetoothPermissionView())
webViewController?.presentOverlayController(controller: bluetoothPermissionView, animated: true)
}
Expand Down

0 comments on commit bf791b5

Please sign in to comment.