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

Swift 4.2 Compiler Error #37

Open
evyasafm opened this issue Dec 5, 2018 · 2 comments
Open

Swift 4.2 Compiler Error #37

evyasafm opened this issue Dec 5, 2018 · 2 comments

Comments

@evyasafm
Copy link

evyasafm commented Dec 5, 2018

Swift 4.2 compiler error:
'NSLayoutFormatOptions' has been renamed to 'NSLayoutConstraint.FormatOptions'

@evyasafm evyasafm changed the title Swift 4.2 compiler isuue Swift 4.2 Compiler Error Dec 5, 2018
@ericdesa
Copy link

ericdesa commented Dec 6, 2018

As a workaround, I add the code bellow at the end of my Podfile to force the ParallaxHeader swift version

post_install do |installer|
    swift4_0_targets = ["ParallaxHeader"]
 
    installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
             if swift4_0_targets.include? target.name
                config.build_settings['SWIFT_VERSION'] = '4.0'
            end
        end
    end
end

@asadjamil
Copy link

I have changed older version swift code to latest swift version and it works fine.

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

No branches or pull requests

3 participants