This works for me:
if let applicationToken = selection.categoryTokens.first {
Label(applicationToken).labelStyle(CustomLabelStyle())
}
Also, in CustomLabelStyle, I just defined a style with only the icon. Can't get it to resize unless I use scaleEffect though, and since the sizing is different depending on screen size, I gave up resizing and just opted to use the base icon.
Post
Replies
Boosts
Views
Activity
Thanks a lot! it was very helpful.
For anyone else wondering, I did realize updates were getting passed if I used multiple entries and I was able to update my widgets accordingly.
Hi, I tried using the macro but I don't know how to preview a stale live activity. It seems we can change contentStates, but I don't see a way to change isStale unless I'm missing something.