I believe that WeatherKit requires an entitlement that is not available to request on the iPad using Swift Playgrounds.
You’ll likely need to use Xcode on a Mac to be able to use WeatherKit using the native SwiftUI calls.
Topic:
App & System Services
SubTopic:
General
Tags: