Post

Replies

Boosts

Views

Activity

Reply to How to fetch an image in the Live Activity (ActivityKit)
For anyone experiencing the issue where the image is showing up on the Lock Screen, but adding it to the island blows up the whole activity, I figured this out. There was the following log in Console.app: fault 13:19:22.889771-0500 WidgetExtension Widget archival failed due to image being too large [22] - (320, 320). Resizing the UIImage before passing to Image fixed the problem. I just guessed and went for 84px wide. This error should really show up in Xcode itself and the required size should be specified in the documentation (I just guessed at 84px which seems to work). Additionally, .frame() on the SwiftUI Image type should be able to accomplish the same thing.
Jan ’23