jverdi / JVFloatLabeledTextField

UITextField subclass with floating labels - inspired by Matt D. Smith's design: http://dribbble.com/shots/1254439--GIF-Mobile-Form-Interaction?list=users
MIT License
7.2k stars 731 forks source link

Swift Package Manager doesn't build because it cannot find UIKit #213

Closed wvteijlingen closed 3 years ago

wvteijlingen commented 3 years ago

When cloning the repo and running swift build, it fails because it cannot find UIKit:

In file included from /Users/x/JVFloatLabeledTextField-master/JVFloatLabeledTextField/JVFloatLabeledTextField/JVFloatLabeledTextView.m:28:
/Users/x/JVFloatLabeledTextField-master/JVFloatLabeledTextField/JVFloatLabeledTextField/JVFloatLabeledTextView.h:28:9: fatal error: 'UIKit/UIKit.h' file not found
#import <UIKit/UIKit.h>
        ^~~~~~~~~~~~~~~
jverdi commented 3 years ago

My understanding is that swift build does not support iOS, but xcodebuild should work.