NextGrowingTextView
NextGrowingTextView copied to clipboard
Unexpectedly found nil
I’m working on Swift 2.3 using NextGrowingTextView 0.2.0. When I add a UIScrollView and and connect the IBOutlet, I get the error:
fatal error: unexpectedly found nil while unwrapping an Optional value
What I tried to do next is to add it programmatically like:
var growingTextView: NextGrowingTextView!
growingTextView = NextGrowingTextView()
self.inputContainerView = growingTextView
self.view.addSubview(growingTextView)
And I got it working. But the problem is, it doesn’t change how it looks. cornerRadius and backgroundColor etc won’t work on it. Where am I gone wrong?