Challenge: SwiftUI science fiction! ππ»
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
Please note, this is not production level code
Result
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 |
---|---|
Reference image
Source: https://en.wikipedia.org/wiki/LCARS
Workarounds
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
Resources
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/ |