Kingfisher
Kingfisher copied to clipboard
UIGraphicsImageRenderer - render kfimage not getting the desired image
when using UIGraphicsImageRenderer render view, I only received 1 photo with a white background
I find two solutions for this issue.
- Use
UIKit
implement the UI and wrapped withUIViewRepresentable
. - Use
DispatchQueue.main.asyncAfter
make a 0.1s delay when you take the snap.
I guess the reason is preparing the context of view to image need some time, it maybe can not get full context in sync. So I tried to do the snap after a delay.
Thank you for your help