convert Swift 2.3 to Swift 4 : <p>I am new in Swift 4 and I want to resolve the Swift version 2.0 Project with Uitextview error</p>

<p>here is error in Swift 4 </p>

<pre><code>let textView = UITextView(frame: CGRectInset(view.bounds, 10, 10))
</code></pre>

<p>I will change with <strong>'CGRectInset' has been replaced by instance method 'CGRect.insetBy(dx:dy:)'</strong></p>

<p>but I don't know how </p>

<p>I change with let textView = UITextView(frame: CGRect.insetBy(view.bounds, 10, 10)) but error again </p>

<p>and here is other problem </p>

<pre><code>textView.textContainerInset = UIEdgeInsetsZero
</code></pre>

<p>I will change the <code>UIEdgeInsetsZero</code></p>
