Skip to content
This repository was archived by the owner on Aug 18, 2023. It is now read-only.

Conversation

SuzGupta
Copy link
Contributor

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:

  • How do I get list of categories into the widget configuration (in other words, into the Intents extension)?
  • How do I get the selected category’s image from within the widget?
  • What should I be doing with Provider inside the Widgets file? What should it conform to and what do I need to add to correct the Xcode errors?
  • What’s the right way to set up an IntentTimelineProvider?

References

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)

  • Launch app in simulator
  • Command-L to show Lock Screen
  • Long press on Lock Screen will eventually lead to a screen configuration view where one can add and edit widgets. This was quite slow on my machine but does eventually work.
  • Add a Brain Marks Lock Screen widget.
  • Tap the widget to configure, then choose a category.
  • The widget now displays that category's image.
  • When tapped, the widget displays that category's list of tweets.

Notes

  • Mark Powell has offered to pair with me later in the week, so I do intend to come back and finish this properly!

Screenshot

Simulator Screen Shot - iPhone 14 Pro Max - 2022-10-28 at 10 42 20

…displaying TweetList). Helped needed with user configuration aspects.
@mikaelacaron mikaelacaron added the hacktoberfest-accepted Accepted PR for Hacktoberfest label Oct 31, 2022
…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.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

hacktoberfest-accepted Accepted PR for Hacktoberfest

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants