Replies: 1 comment 1 reply
-
We adopted this policy in #2260. |
Beta Was this translation helpful? Give feedback.
1 reply
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
Historically Lottie has supported many past Swift versions. For example, Lottie 4.2.0 supported Swift 5.5+, which was originally released in Xcode 13.0 (Sept 2021) and replaced by Swift 5.6 in Xcode 13.3 (March 2022).
We don't really have a holistic policy on which Swift versions we should support. I've just been dropping support for older Swift versions once it became inconvenient for some specific reason. For example, we dropped support for Swift 5.5 in Lottie 4.3.0 because it made it more difficult to add support for visionOS.
I'm not entirely sure what the use cases of these older versions of Swift are. I imagine the most typical use case of Lottie is in apps published on the App Store. For authors of apps published on the App Store, Apple imposes a pretty strict minimum Xcode / Swift version requirement. As of April 2023 apps must be built with Xcode 14.1 / Swift 5.7.1 or later, and starting in April 2024 apps must be built with Xcode 15.0 / Swift 5.9 or later.
It seems reasonable for the minimum Swift version supported by Lottie to match the minimum Xcode / Swift version required by the App Store. Following that policy, Lottie would currently support Swift 5.7+ and would then support Swift 5.9+ starting after April 2024.
Does anyone have a use case that would be negatively impacted by that sort of policy? Remember that if your project uses Swift 5.6 but we require Swift 5.7 in Lottie 4.4.0, you could continue using Lottie 4.3.0 in your project.
Beta Was this translation helpful? Give feedback.
All reactions