devxoul / UITextView-Placeholder

A missing placeholder for UITextView
MIT License
1.48k stars 259 forks source link

@import UIKit; #41

Closed kiryl09 closed 5 years ago

kiryl09 commented 6 years ago

While compilation in UITextView+Placeholder.h I have a error "Use @import when modules are disabed". Unfortunately I cannot add use_frameworks! to my pod file. Please replace @import UIKit; with #import <UIKit/UIKit.h> in header file

devxoul commented 6 years ago

How did you setup UITextView-Placeholder?

zengweijun commented 5 years ago

So do i.Please replace @import UIKit; with #import <UIKit/UIKit.h> in header file,it is start work

Otherwise, Encountered an error“Use of '@import' when C++ modules are disabled, consider using -fmodules and -fcxx-modules”

consider using "#import <UIKit/UIKit.h>"

devxoul commented 5 years ago

62 fixes this. Please feel free to reopen it if you still have a problem!