FlatButton icon indicating copy to clipboard operation
FlatButton copied to clipboard

how to use in swift 4.0 ?

Open jackie-jiang-ios opened this issue 6 years ago • 2 comments

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

jackie-jiang-ios avatar Jun 01 '18 01:06 jackie-jiang-ios

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

rbugajewski avatar Aug 30 '18 11:08 rbugajewski

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

anonymouz4 avatar Nov 16 '18 17:11 anonymouz4