Ok, thx. Code exists is legacy and from a much earlier version. I will take it out. However, if I move
.alert(isPresented: $disabledAlert, content: {
Alert(title: Text("Network Error"), message: Text("You aren't connected to the internet, please connect to use Pickt."), dismissButton: .default(Text("Ok"), action: {
disabledAlert = false
presentationMode.wrappedValue.dismiss()
}))
})
to be a child of
AlertControlView(textString: $blank, showAlert: $enterLoc, textPlaceholder: $textAlertFieldPlaceholder, title: "Error", message: "Please enter location to continue.", onDone: { loc in
location = loc
create()
}, onCancel: {
enterLoc = false
creating = false
})
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: