[Tip] GUI Shortcuts: Text in Widgets with WidgetPack

I’ve been creating many widgets that pull text from Drafts using the app WidgetPack, which adds a bunch of actions to shortcuts. It’s pretty easy, but you can spend a lot of time doing trial and error getting the layout right.

The basic concept is:

  1. Get your Drafts text using the Drafts shortcuts (this might be getting a specific draft, getting a workspace and random draft, etc. etc.
  2. Connect that text to a “Display text” action from WidgetPack. Open the disclosure triangle on that action to set the font and color of the text (or set the font using a “font” action from WidgetPack earlier in the sequence and add that as a variable here)
  3. Choose a color or grab an image to use as the background (like if you want to have one of those “transparent” widgets). If you’re using a color, that’s the “color” action in WidgetPack, if it’s an image, grab the image from iCloud Drive using the shortcuts file action, then use the “image” action from WidgetPack. Typically, I set the image as “resizable” and then use the WidgetPack action “Scale Image to Fit” to make sure the image looks right on the screen.
  4. Then use the shortcuts “list” action to grab the variables for the “color” and then the “text”
  5. Create a “z stack” using the WidgetPack action (this layers the items of the list on top of one another).
  6. Create an “update widget” action from WidgetPack and give your widget a name.
  7. Run the shortcut, then add a “WidgetPack” widget to your home screen and edit it to select the widget you just made.

You can get more complex creating “vertical stacks” and “horizontal stacks” of text and images to create pretty complex layouts. Here’s two examples:

3 Likes

There are a number of products called Widgetpack. I found a Reddit thread about the one I think @derekvan is talking about. The app has a Twitter account and a Discord.

1 Like

Right, this is the one. Sorry I didn’t link to it.

1 Like

Awesome. Do you care to share the iCloud link for these two shortcuts?

I used widget pack for awhile but then it started failing. I think it was a beta issue. I need to hop back and give it another whack.

1 Like

I think these are the same ones. I don’t have time to make these user-friendly (with import questions and all that). Hopefully you can see where to edit for your own data.

2 Likes

I am not having any trouble with the App Store version of WidgetPack these days, but I did have some beta hiccups. Restarting the phone is usually the answer. Still waiting for 14.2 to come out of beta and smooth things out I think.

1 Like

Yes. I just thought it would be easier to adapt yours than try to copy them all. But I’m good with building / adjusting. Thanks.