Kingfisher icon indicating copy to clipboard operation
Kingfisher copied to clipboard

UIGraphicsImageRenderer - render kfimage not getting the desired image

Open hoangnam714 opened this issue 1 year ago • 2 comments

when using UIGraphicsImageRenderer render view, I only received 1 photo with a white background

hoangnam714 avatar Mar 08 '23 09:03 hoangnam714

I find two solutions for this issue.

  1. Use UIKit implement the UI and wrapped with UIViewRepresentable.
  2. 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.

marrynerv avatar Apr 24 '23 15:04 marrynerv

Thank you for your help

hoangnam714 avatar May 19 '23 09:05 hoangnam714