Post

Replies

Boosts

Views

Activity

Reply to How to fetch an image in the Live Activity (ActivityKit)
Has anyone solved this problem yet? I have issue about url image show in simulator work, but device not working. NetworkImage(url: URL(string: context.attributes.imageGame)) .aspectRatio(contentMode: .fill) .frame(width: 35, height: 35) .clipShape(Circle()) struct NetworkImage: View { let url: URL? var body: some View { Group { if let url = url, let imageData = try? Data(contentsOf: url), let uiImage = UIImage(data: imageData) { Image(uiImage: uiImage) .resizable() } else { Image("league") } } } }
Nov ’23