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
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