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

Update minimum Swift version to 5.5 #1787

Merged
merged 6 commits into from Oct 21, 2022
Merged

Update minimum Swift version to 5.5 #1787

merged 6 commits into from Oct 21, 2022

Conversation

calda
Copy link
Member

@calda calda commented Oct 21, 2022

Lottie 4.0 is a good opportunity for us to update our minimum-supported Swift version.

This PR updates this repo to require Swift 5.5 and Xcode 13.0+

@@ -193,12 +193,12 @@ extension GradientShapeItem {
for colorIndex in 0..<numberOfColors {
let colorStartIndex = colorIndex * 4

let colorLocation = CGFloat(colorComponents[colorStartIndex])
let colorLocation = Double(colorComponents[colorStartIndex])
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

banished CGFloat to the shadow realm

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One of these CGFloat changes causes the Xcode 13.2 build to fail with a weird and unhelpful Illegal instruction: 4 error, so I reverted those changes

@calda calda enabled auto-merge (squash) October 21, 2022 17:36
@calda calda merged commit e167559 into master Oct 21, 2022
@calda calda deleted the cal--update-swift-version branch October 21, 2022 17:59
calda added a commit that referenced this pull request Nov 28, 2022
calda added a commit that referenced this pull request Dec 1, 2022
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

Successfully merging this pull request may close these issues.

None yet

2 participants