I was trying to make a widget for the app, but struggling to get the right data to the widget.
- App is written in Swift 5.
- I need to get data with the progress of the user
- Depending on the user progress (if there is some progress show some content depending on progress if there is no progress show different view that would ask to start the program)
So the problem is with #2 getting the data from the app.
In most tutorials, I saw only SwiftUI and WidgetKit, but not UIKit + Widgets, so I really need help to get started.
The app is quite complex already, and don't want to add all files as targets to the .widget if possible.
Answers might help in future for everyone else I guess who will be working with Swift and Widgets.
Thanks in advance!