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
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.swift
in 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:
Provider
inside 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