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
Reply to Could not upload Socket.io package from github?
Package Resolution Failed while installing in Xcode.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’21
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:
Replies
Boosts
Views
Activity
Nov ’21
Reply to How do I take user`s input textfield of Longitude and Latitude to plot Annotation on map?
Sorry for the messy reply, @State var textFieldLat: String = ""  right below ContentView:View{ ... At the Button, i declared as savedLat = texteFieldLat. I have tried converting from string to double. Is my approach correct on the map annotation part?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to Annotate markpin on map using mapkit map
What I am trying to achieve is when user key in lat and long values and pressed the button, it will annotate on the map.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’21