Playgrounds in the Xcode 14.0 beta (14A5228q):
import WeatherKit
import CoreLocation
let weatherService = WeatherService()
let spaceNeedle = CLLocation(latitude: 47.62, longitude: -122.35)
let weather = try! await weatherService.weather(for: spaceNeedle)
print(String(describing: weather))
Topic:
App & System Services
SubTopic:
General
Tags: