diff --git a/apps/ios/Shared/ContentView.swift b/apps/ios/Shared/ContentView.swift index 610fb8262b..9139523580 100644 --- a/apps/ios/Shared/ContentView.swift +++ b/apps/ios/Shared/ContentView.swift @@ -124,14 +124,14 @@ struct ContentView: View { func notificationAlert() -> Alert { Alert( title: Text("Notifications are disabled!"), - message: Text("The app can notify you when you receive messages or contact requests - please open settings to enable."), - primaryButton: .default(Text("Open Settings")) { - DispatchQueue.main.async { - UIApplication.shared.open(URL(string: UIApplication.openSettingsURLString)!, options: [:], completionHandler: nil) - } - }, - secondaryButton: .cancel() - ) + message: Text("The app can notify you when you receive messages or contact requests - please open settings to enable."), + primaryButton: .default(Text("Open Settings")) { + DispatchQueue.main.async { + UIApplication.shared.open(URL(string: UIApplication.openSettingsURLString)!, options: [:], completionHandler: nil) + } + }, + secondaryButton: .cancel() + ) } } diff --git a/apps/ios/Shared/Views/Chat/ComposeMessage/ComposeView.swift b/apps/ios/Shared/Views/Chat/ComposeMessage/ComposeView.swift index 1130540695..5399acb151 100644 --- a/apps/ios/Shared/Views/Chat/ComposeMessage/ComposeView.swift +++ b/apps/ios/Shared/Views/Chat/ComposeMessage/ComposeView.swift @@ -476,10 +476,16 @@ struct ComposeView: View { if let recStartError = await audioRecorder?.start(fileName: fileName) { switch recStartError { case .permission: - AlertManager.shared.showAlertMsg( - title: "No permission to record voice message", - message: "To record voice message please grant permission to use Microphone." - ) + AlertManager.shared.showAlert(Alert( + title: Text("No permission to record voice message"), + message: Text("To record voice message please grant permission to use Microphone."), + primaryButton: .default(Text("Open Settings")) { + DispatchQueue.main.async { + UIApplication.shared.open(URL(string: UIApplication.openSettingsURLString)!, options: [:], completionHandler: nil) + } + }, + secondaryButton: .cancel() + )) case let .error(error): AlertManager.shared.showAlertMsg( title: "Unable to record voice message",