Move UITextField/View up when keyboard appears, but only if TextFiel is hidden
<p>I made an iOS app with Xcode and Swift.
In one ViewController there's a form with multiple UITextFields.
My problem is, that the TextFields near the bottom are hidden behind the keyboard when it is opened.</p>

<p>I already found a workaround that moves the whole View up as soon as the keyboard appears. But that means, that the topmost TextFields get hidden.</p>

<p>I'm already spending hours to find a working solution, but without success.</p>

<p>Is there anybody who can help me please?</p>

<p><strong>EDIT</strong></p>

<p>I decided to try <code>IQKeyboardManager</code> library.</p>

<p>Since I don't use CocoaPods I tried the "manual" way.</p>

<p>I added this line of code (<code>IQKeyboardManager.sharedManager().enable = true</code>) in <code>didFinishLaunchingWithOptions</code> in AppDelegate and I moved (drag and drop) the whole <code>IQKeyboardManagerSwift</code> folder in the left side bar in Xcode.</p>

<p>But I'm getting: <code>Use of unresolved identifier 'IQKeyboardManager'</code>.</p>

<p>What am I doing wrong?</p>