https://developer.apple.com/news/?id=f4phvjei
I went with a Star Trek theme, inspired by the LCARS (Library Computer Access/Retrieval System) design.
Tech used:
- SwiftUI π
- WeatherKit for the graph data π¦
- Swift Charts π
- SwiftUI
Grid
for the numbers and buttons layout
Disclaimer: This project is not affiliated with or endorsed by Star Trek in any way. This is posted as a way to share SwiftUI, WeatherKit, Swift Charts learnings (and is not production level code).
Simulator.Screen.Recording.-.iPhone.13.Pro.Max.-.2022-06-08.at.20.28.30.mp4
Line chart with Symbols | Line chart |
---|---|
Bar chart | Area chart |
---|---|
Source: https://en.wikipedia.org/wiki/LCARS
After adding my bundle id and marking the Capabilities
and App Services
to enable WeatherKit, I still receive the 401
error (after many hours).
As a workaround, I have temporarily used the bundle id from the sample sessions to obtain the weather data. com.example.apple-samplecode.FlightPlanner
Thing | Link |
---|---|
What's new in SwiftUI | https://developer.apple.com/videos/play/wwdc2022/10052/ |
Meet WeatherKit | https://developer.apple.com/videos/play/wwdc2022/10003/ |
Hello Swift Charts | https://developer.apple.com/videos/play/wwdc2022/10136/ |