SAConfettiView
SAConfettiView copied to clipboard
Swift 4.2
Update to 4.2 please.
please please please update update update
If you are using the latest Xcode version, just follow the hint on authorize and then Cmd + Shift + K to clean the Build Folder and try again. I have done and it run properly with Swift 4.2. Good luck!
Unfortunately, this library has not been updated for a long time and does not work after swift 4.2. If you get an error and cannot use this library, you can visit it. For the active repo and many new features,
https://github.com/ugurethemaydin/SwiftConfettiView
For anyone on a different version of Swift than SAConfettiView
, you can do something like this in CocoaPods:
target 'myapp' do
# CocoaPods isn't up-to-date, so use the latest commit
pod "SAConfettiView", :git => 'https://github.com/sudeepag/SAConfettiView.git', :commit => '4c78e355def75a37b707af63b393ba09895405a9'
end
# Force SAConfettiView to build with Swift 4
post_install do |installer|
installer.pods_project.targets.each do |target|
if ['SAConfettiView'].include? target.name
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '4.0'
end
end
end
end
Thanks for this @bendytree! I'm now using it for other pods that haven't updated in a while either.