LiquidFloatingActionButton icon indicating copy to clipboard operation
LiquidFloatingActionButton copied to clipboard

Update to Swift 3 description

Open alexanderkhitev opened this issue 7 years ago • 1 comments

Hello everybody! Firstly I want to say thank you so much for this wonderful library. Secondly I want to tell you, the way that I've got to update this library on the Swift 3.

At first I did add this pod, and at the end of my file I have the following entry

post_install do |installer|
    installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
            config.build_settings['SWIFT_VERSION'] = '3.0'
        end
    end
end

but after the update pods, I got an error that the library does not meet the Swift 3.

Then, I decided to make an update to this library and did my fork. And then I decided to just try to change the entry on the pod replace of pod "LiquidFloatingActionButton" with pod 'LiquidFloatingActionButton', :git => 'https://github.com/alexsanderkhitev/LiquidFloatingActionButton.git'

Then I updated again, and then update the compiler no longer shows the error, I just looked at the outcome of the code, it is now matched against the Swift 3. Please do not forget this record at the end of the Podfile

post_install do |installer|
    installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
            config.build_settings['SWIFT_VERSION'] = '3.0'
        end
    end
end

alexanderkhitev avatar Nov 21 '16 11:11 alexanderkhitev

Wait, I am confused, which action did you use that resulted in the project working properly? Thanks

Edit:

Got it to work and I used

pod 'LiquidFloatingActionButton', :git => 'https://github.com/alexsanderkhitev/LiquidFloatingActionButton.git'

Thanks a lot!!!

munibrahman avatar Nov 27 '16 05:11 munibrahman