mirror of
https://github.com/yattee/yattee.git
synced 2025-10-20 06:18:16 +00:00
Locations manifest, reorganized instances settings
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user