Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
current code
#if !os(watchOS) if #available(tvOS 10.0, *) { let format = UIGraphicsImageRendererFormat() format.scale = scale let renderer = UIGraphicsImageRenderer(size: size, format: format) return renderer.image { context in color.setFill() context.fill(CGRect(origin: .zero, size: size)) } } #endif
just render a color to image it should add
context.cgContext.clip(to: rect, mask: mask)
before color.setFill()
and also, the result after using UIGraphicsImageRenderer is different from old version, the old version is fliped vertically
The text was updated successfully, but these errors were encountered:
Thanks for reporting @miku1958
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
current code
just render a color to image
it should add
before color.setFill()
and also, the result after using UIGraphicsImageRenderer is different from old version, the old version is fliped vertically
The text was updated successfully, but these errors were encountered: