The problem is that when I enter some text in my textView the text goes out of its set frames. I am creating everything programatically though.
Creating UITextView:
let descriptionTextView: UITextView = {
let textView = UITextView()
textView.backgroundColor = UIColor.customDarkGrayColor
textView.text = "News Description"
textView.textColor = UIColor.lightGray
textView.font = UIFont.systemFont(ofSize: 15)
textView.textContainerInset = UIEdgeInsets(top: 10, left: 16, bottom: 0, right: 16)
textView.autocorrectionType = .no
textView.setDefaultShadow()
return textView
}()
Adding as subview and Setting Constraints using my custom method:
addSubview(descriptionTextView)
descriptionTextView.anchor(top: titleTextField.bottomAnchor, left: leftAnchor, bottom: nil, right: rightAnchor, paddingTop: 10, paddingLeft: 20, paddingBottom: 0, paddingRight: 20, width: 0, height: 80)