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

how to use in swift 4.0 ? #18

Open
jackie-jiang-ios opened this issue Jun 1, 2018 · 2 comments
Open

how to use in swift 4.0 ? #18

jackie-jiang-ios opened this issue Jun 1, 2018 · 2 comments

Comments

@jackie-jiang-ios
Copy link

can not use in swift 4.0
When's the new version?

@rbugajewski
Copy link

Add the dependency in CocoaPods and then change the Swift version just for the FlatButton target (config.build_settings['SWIFT_VERSION'] = '3.4').

@anonymouz4
Copy link

anonymouz4 commented Nov 16, 2018

I successfully got it to work on Swift 4.2:

Steps I did:

replace NSOnState with .on
replace NSOffState with .off

in this Line specify the variable to:
let nextState: NSControl.StateValue = isOn ? .on : .off

For all other changes, Xcode will give you the right suggestion anyway.

The when building, at least for me, Xcode showed an error in the buildscript:
What you need to do is go to the affected script (framework.sh)
And change one Line:
EXPANDED_CODE_SIGN_IDENTITY to EXPANDED_CODE_SIGN_IDENTITY:-
See this Link

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