SwiftUI community shim version?

hi,

Is anybody aware of any serious efforts to provide some sort of shim package that can bring features only available in newer releases back to the original 2019 version?

For example in SwiftUI (2020), LazyVGrid and LazyHGrid were introduced but these could be back deployed if somebody were to put a shim SwiftUI package that provided this functionality as long as we are not using new language features. For example, something like this article Backward Compatibility with SwiftUI - The SwiftUI Lab

I hear folks say that many times what stops them from using SwiftUI is that the need to support current plus two previous iOS version so this year seems to be an option for adoption for some folks.

Thanks!

Here is my version of a custom StateObject that works on iOS 13. It does however require one extra cycle per view lifecycle but that's a tiny price to pay, other than that it works and behaves the same and provides the same API surface:

This article does not bring features only available in newer releases back to the original 2019 version. All it does is provide wrappers that use the new APIs when they are available or fall back on the older APIs. This is completely different from what the rest of your comment is about.

Given that SwiftUI is closed source, backwards-compatible implementations are going to be few and far between.

Terms of Service

Privacy Policy

Cookie Policy