How to get the Longitude and Latitude then store it on a Variable? on Swift

so I’ve tried to make a program to retrieve the user’s location, this time I want to take the Latitude and Longitude that are in the region but how do I retrieve them and store them in a variable import SwiftUI import MapKit import CoreLocationUI struct ContentView: View { @StateObject private var viewModel = ContentViewModel()… Read More How to get the Longitude and Latitude then store it on a Variable? on Swift