atrinh0 / SciFiChallenge

Challenge: SwiftUI science fiction! πŸ––πŸ»

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

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).

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/

About

Challenge: SwiftUI science fiction! πŸ––πŸ»

License:MIT License


Languages

Language:Swift 100.0%