SAConfettiView icon indicating copy to clipboard operation
SAConfettiView copied to clipboard

Swift 4.2

Open ghost opened this issue 6 years ago • 5 comments

Update to 4.2 please.

ghost avatar Sep 19 '18 06:09 ghost

please please please update update update

wanbinkimoon avatar Jan 30 '19 10:01 wanbinkimoon

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!

ledanh57 avatar Mar 21 '19 15:03 ledanh57

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

ugurethemaydin avatar Apr 20 '19 17:04 ugurethemaydin

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

bendytree avatar May 04 '19 19:05 bendytree

Thanks for this @bendytree! I'm now using it for other pods that haven't updated in a while either.

ThoseGuysInTown avatar Jul 08 '20 23:07 ThoseGuysInTown