transparent UITextView

Viewed 16146

How do I make a UITextView transparent? I built the view in Interface Builder and placed a UITextView into it and it covers the background.

Any ideas?

7 Answers

Swift 4.2

txtView.backgroundColor = .clear

for Swift 4

textView.backgroundColor = UIColor.clear

For those who are looking for the simple answer please see the screenshot. Select TextView, change the Background property in the Attributes Inspector to "Clear Color"

Attributes Inspector

Related