Skip to content

Commit

Permalink
Try closing system dialog on wifi disable on iOS (#2123)
Browse files Browse the repository at this point in the history
  • Loading branch information
quangduy-luong authored Jun 4, 2024
1 parent 1106243 commit 1c84c5b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,8 @@

if toggle.value! as! String == "1" {
toggle.tap()
// Disabling wifi can cause a system alert to appear
try self.acceptSystemAlertIfVisible()
} else {
Logger.shared.i("wifi is already disabled")
}
Expand Down

0 comments on commit 1c84c5b

Please sign in to comment.