Post

Replies

Boosts

Views

Activity

Reply to How do I take user`s input textfield of Longitude and Latitude to plot Annotation on map?
Right below struct ContentView: View {   @State var textFieldLat: String = ""   @State var textFieldLong: String = ""   @State var savedLat: String = ""   @State var savedLong: String = "" The middle code: Button(action: { savedLat = textFieldLat ////<-- saved as latitude to plot savedLong = textFieldLong////<--- saved as longitude to plot I have tried converting them to double from string. I am new to swiftui, might have declared it wrongly.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Nov ’21