Drawsana
Drawsana copied to clipboard
[Bug] Xcode 15 Crash
Hi, I'm developing an app using Drawsana. I recently updated Xcode to 15 and when I run it on iOS 17, I get the error shown in the screenshot. So I searched the forums and added the following code as a workaround, but it would be great if you could make it bug-free for the latest version.
Thanks !
Crash ScreenShot
Suggestion
- Add code to avoid rendering images if size.width, size.height is less than 0 before calling UIGraphicsBeginImageContextWithOptions
if (size.width <= 0 && size.height <= 0) {
return nil
}
UIGraphicsBeginImageContextWithOptions(size, false, scale)
Reference
- https://developer.apple.com/forums/thread/733326
Thanks @julia0926 I had the same problem, thanks for your code