This repository was archived by the owner on Aug 18, 2023. It is now read-only.
Partial implementation of lock screen widget, ISO help#178
Draft
SuzGupta wants to merge 5 commits intomikaelacaron:devfrom
Draft
Partial implementation of lock screen widget, ISO help#178SuzGupta wants to merge 5 commits intomikaelacaron:devfrom
SuzGupta wants to merge 5 commits intomikaelacaron:devfrom
Conversation
…displaying TweetList). Helped needed with user configuration aspects.
…a JSON file and stored in App Group, starting to decode into widget but realized we need a new model that's not dependent on Amplify, since that will go away.
…ant to decode JSON that's now in app group file. not sure yet how to work with this.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Because I have changed
BrainMarksWidgets.swiftin an attempt to get the user configuration working, this no longer works but, as shown in the screen cap below, an earlier version did result in the lock screen widget appearing in the widget galley. Also working previously: tapping the widget opened the tweet list view for the first category in the categories array.Right now, after flailing around attempting to add the user configuration aspects, it's all fairly broken. I am submitting the draft PR as a good faith effort and also in hopes of getting some help. Some questions I have:
Providerinside the Widgets file? What should it conform to and what do I need to add to correct the Xcode errors?IntentTimelineProvider?References
Natascha Fadeeva’s 05 Sep 2022 blog post, [“How to build a configurable widget with WidgetKit and SwiftUI”] (https://tanaschita.com/20220905-how-to-build-a-configurable-widget-with-widgetkit-and-swiftui/)
@FloWritesCode’s video, “Custom Intent Handling (Give User Options to Configure Widget) | WidgetKit Course [6]”
The Apple doc on Making a Configurable Widget
Progress on issue #155
What it Does
Nothing right now, since it's broken, but the idea is to have a circular widget that display's the user's choice of Brain Marks Category. When tapped, this widget will open Brain Marks showing the Tweet List view for the selected category. The user can set up a couple of these widgets on her lock screen, each set to display a different category.
How I Tested
(Interpreting as how one would test; this is currently broken)
Notes
Screenshot