Reputation: 858
I can't achieve to display images from asset in live activities & dynamic island widgets.
It's work very well with icon but not with image from asset or from UIImage (via Data).
This works:
Image(systemName: "timer")
This NOT work:
Image("pizza")
My App asset looks like:
I copied asset in the extension:
The live activity notification is not created when I add the Image from asset. Any help would be appreciated!
What I tried & not working:
Upvotes: 2
Views: 2643
Reputation: 858
I found the issue, Image need to be in a small resolution to be displayed in your live activity/dynamic island.
Data must be lower or equal than 4kb, here is the official Apple doc:
The updated dynamic data for both ActivityKit updates and ActivityKit push notifications can’t exceed 4KB in size.
Upvotes: 12