NextGrowingTextView icon indicating copy to clipboard operation
NextGrowingTextView copied to clipboard

Unexpectedly found nil

Open waseefakhtar opened this issue 9 years ago • 0 comments

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?

waseefakhtar avatar Feb 01 '17 22:02 waseefakhtar