MengTo / Spring

A library to simplify iOS animations in Swift.
http://designcode.io
MIT License
14.08k stars 1.8k forks source link

Swift 4.2 #321

Open rawmean opened 5 years ago

rawmean commented 5 years ago

The library does not compile under Swift 4.2 anymore (tons of errors). Is this repo abandoned?

rezaul99 commented 5 years ago

i am also facing same issue...

rm335 commented 5 years ago

You can solve this problem by selecting the Swift Language Version "Swift 4.2".

Pods -> Targets -> Spring -> Build Settings -> Swift Language Version and select Swift 4.2

rawmean commented 5 years ago

There are numerous compile errors with 4.2. That's the problem. The errors go away if you compile with 4.0, but the deprecations are going to take effect in the next swift version and then it wouldn't compile at all.

ludivinefafournoux commented 5 years ago

I have this problem too

fanglinwei commented 5 years ago

Spring.podspec Add s.swift_version = "4.2"

laurennicoleroth commented 5 years ago

pod 'Spring', :git => 'https://github.com/MengTo/Spring.git' only works for iOS 10. 83 build errors for target 12.

rawmean commented 5 years ago

@lauren this is not related to iOS version; it's reluto the Swift version that's used to compile the library. It still works on iOS 12 if you force it to compile using Swift 4.0