Super weird....I had a similar problem.
using ShareLink to send an image
use ImageRenderer to generate image
when converting from UIImage directly to Image the one that would "send" was fuzzy
below is the code I used to fix it like the comment above.
@MainActor func render() {
let renderer = ImageRenderer(content: viewToPost)
renderer.scale = 3
if let uiImage = renderer.uiImage {
let data = uiImage.pngData()
var fullImage = UIImage(data: data!)
self.postImage = Image(uiImage: fullImage!)
UIImageWriteToSavedPhotosAlbum(uiImage, nil, nil, nil)
}
}
for some reason if I don't convert into a new UIImage from the png data then the resulting image is fuzzy. Can someone with any insight comment? I like having a solution, but it keeps me up at night not UNDERSTANDING it.
Post
Replies
Boosts
Views
Activity
Same issue....no clue when I can actually get back to work since I'm getting absolutely ZERO feedback on whats going on here.
I have the same problem too...even with the ScrollView and LazyVStack
...so tried this on my laptop and my mac at the office with the same result. The preview and simulator are both affected, however when I run it on my iphone it works. Does this happen with anyone else? Using Xcode Version 14.3 (14E222b).
I can click the NavigationLink once, but when I go back to the list I can't click again. Seems like a bug
sorry i don't know why the images aren't showing.
I'm having the same issue. I tried everything I could google and ChatGPT...only thing that worked for me is to remove the path with the custom object and let the stack use the default path. no more freezing.