Closed vibhor-d11 closed 4 months ago
@gre can we merge it?
Thanks @vibhor-d11
i've merged it and release it under 4.0.0-alpha.2
so we can test it more. please let me know if everything works for you.
Im getting blank image after adding this PR any reason why is that heppening.
I believe this is a regression. I am also receiving a blank image. Reverting these changes restores the correct behaviour. Note: I have no issues running the previous code on iOS 17
I believe this is a regression. I am also receiving a blank image. Reverting these changes restores the correct behaviour. Note: I have no issues running the previous code on iOS 17
Hello @alanjhughes @AkashTureha can you share steps to reproduce for when it is showing blank images? This patch is working fine for us and haven't encountered this issue for our users.
Hi @vibhor-d11 - to reproduce you only need to enable the new architecture.
Hey @alanjhughes What is the version of Xcode you are using for building the app on iOS 17?
Building with Xcode 15 for iOS 17 lead to the run-time crash when using a deprecated UIGraphicsBeginImageContextWithOptions code on the UIImage instances with .zero size.
Following UI Image apis are depricated from ios 17 when build with Xcode 15:
https://developer.apple.com/documentation/uikit/1623912-uigraphicsbeginimagecontextwitho https://developer.apple.com/documentation/uikit/1623924-uigraphicsgetimagefromcurrentima
Instead need to use UIGraphicsImageRenderer and UIGraphicsImageRendererContext. Have replaced them in this pr.