Description
This pull request contains changes to package management, updates to Swift 5 and iOS 14 widget support (small and medium). Bug fixing due to updating to iOS 14 and updating LocationTracker due to deprecated authorizeStatus
function
I've tried to make a large widget that shows the sun location using SunView, however, I found out WidgetKit prevents too many updates. Converting UIVIew to View with UIViewRepresentable will not work in a Widget for that reason. Alternative methods I tried are screenshot the view after instantiating it or recreate it in View but with no success. I believe this is where my knowledge ends with Swift. In case anyone is interested to pick this up that would be amazing 🙏
Now, the widget retrieves user location and time to show a message and location. Just like inside the app, and it changes the Theme color depending on the day.
Type of Change
- [x] iOS 14 Widget (small, medium)
- [x] Fix authorizeStatus deprecation fix
- [x] Package manger from Carthage to Swift Package Manager
- [x] Fix share button
- [x] Convert to Swift 5
- [x] Fix presenting main modal to fullscreen
Proof that it works

P.S. I'm not a Swift developer, if you see any flaws or possible ways to improve the code, please feel free to make changes. The latest Testflight build that contains the latest update is 1.9.0 Build 58.
enhancement