.actionSheet(isPresented: $showLocationOptions) {
ActionSheet(title: Text("Which city/town is this place in ?"), message: Text("Select a location"), buttons: [
.default(Text(location1)) { },
.default(Text(location2)) { },
.default(Text(location3)) { },
.default(Text(location4)) { },
.default(Text(location5)) { },
.destructive(Text("Cancel")){
}
])
}
.actionSheetjust offers different actions. You might want aPickerin a.sheetwhich shows the active selection and lets you pick another