Skip to content
New issue

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

OS Backport #4

Open
Sherlouk opened this issue Jul 1, 2022 · 1 comment
Open

OS Backport #4

Sherlouk opened this issue Jul 1, 2022 · 1 comment

Comments

@Sherlouk
Copy link
Contributor

Sherlouk commented Jul 1, 2022

Currently this component requires the latest versions of iOS 16, macOS 13 and so on. This is mostly down to the usage of the ImageRenderer system which was newly released then and plays a pivotal role in the accurate creation of an image from a SwiftUI view.

However, this has long been possible to do in UIKit and Cocoa. It would be possible to backport for older versions of iOS, macOS and others by using these older frameworks and methods. We need to think about how we decide what logic to use:

  1. Older OSes use older method, newer OSes use ImageRenderer. This could cause inconsistencies between OS versions which may be confusing and frustrating for developers but ensures as many people as possible are on the 'real' version.
  2. All OSes when in 'backport' mode use the older method. We would need a way to make this opt-in.
@Sherlouk
Copy link
Contributor Author

Sherlouk commented Jul 6, 2022

A great article talking about the ImageRenderer and some of it's shortcomings - could be a reason some may wish to use the backported UIKit/Cocoa version in their app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant