Locations manifest, reorganized instances settings

This commit is contained in:
Arkadiusz Fal
2022-07-01 23:28:32 +02:00
parent 0f46bb179a
commit 7a9a490558
28 changed files with 686 additions and 214 deletions

View File

@@ -221,8 +221,9 @@ final class NavigationModel: ObservableObject {
#endif
}
func presentAlert(title: String, message: String) {
alert = Alert(title: Text(title), message: Text(message))
func presentAlert(title: String, message: String? = nil) {
let message = message.isNil ? nil : Text(message!)
alert = Alert(title: Text(title), message: message)
presentingAlert = true
}