How to ScrollUp UITextField/UITextView When Keyboard appears in iOS App Using Pod | iOS | Xcode

Опубликовано: 30 Сентябрь 2024
на канале: BBUniversal Team
50
3

#addscrollviewswift,
#scrollviewscrollwhenkeyboardappearsswift,
#scrollviewupwhenkeyboardappearsiosswift4,
#howtoscrollviewupwhenkeyboardappearsswift,

How to ScrollUp UITextField/UITextView When Keyboard appears in iOS App | Swift Using Pod | iOS | Xcode


IQKeyboardManager allows you to prevent this issue of keyboard sliding up and covering UITextField/UITextView without needing you to write any code or make any additional setup.

1. Add pod 'IQKeyboardManager' to the Podfile of the project

2. Run “pod install” on terminal
Pod installed successfully. Now

3. Go to AppDelegate file
You need to open .xcworkspace after install pod. It’s giving error. Because it’s xcodeproj file. Let’s close this and open .xcworkspace

4. Import IQKeyboardManagerSwift

5. Add code
IQKeyboardManager.shared().isEnabled = true
inside didFinishLaunchingWithOption

This pod work with every UITextField/UITextView without adding extra code.

To keep learning
Stay connected Stay Subscribe
Like share and comment.

If any query feel free to comment.

Thank you for watching video.