Post

Replies

Boosts

Views

Activity

Reply to ImageRenderer on iOS - generates blurry image, .scale ineffective?
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.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Dec ’22
Reply to ImageRenderer on iOS - generates blurry image, .scale ineffective?
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.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’22
Reply to Can't open Xcode
Same issue....no clue when I can actually get back to work since I'm getting absolutely ZERO feedback on whats going on here.
Replies
Boosts
Views
Activity
Dec ’22
Reply to AsyncImage - Cancelled Loading before View is Visible
I have the same problem too...even with the ScrollView and LazyVStack
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’22
Reply to Adding modifier .tabViewStyle(.page) breaks NavigationStack embedded in TabbedView
...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
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
May ’23
Reply to ScrollViewReader and scrollTo Bug
sorry i don't know why the images aren't showing.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’23
Reply to SwiftUI NavigationLink freezing when tapped
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.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’23