Posts

Post marked as solved
1 Replies
556 Views
'async' call cannot occur in a global variable initializer for weather variable. import WeatherKit import CoreLocation let weatherService = WeatherService() let chicago = CLLocation(latitude: 47, longitude: 87.58293) let weather = try! await weatherService.weather(for: chicago) let temperature = weather.currentWeather.temperature
Posted
by Davu.
Last updated
.