devxoul / UITextView-Placeholder

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

placeholder do not display #77

Open PhoenixLeeSin opened 4 years ago

PhoenixLeeSin commented 4 years ago

Xcode version: 11.3.1 Mac version: Catalina 10.15.2 code like this: let addressTextView = UITextView() addressTextView.placeholderColor = ConstantsHelp.buttonOrTextFieldTextColor addressTextView.placeholder = "placeholder" baseView.addSubview(addressTextView) addressTextView.snp.makeConstraints { (make) in XXXXXX } it works well before but now it dose not display, debug its frame is .zero. so i set layoutIfNeeded(),it can get the right frame . Xcode or swift make a change? o((⊙﹏⊙))o