Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove Done bar on IQKeyboardManagerSwift

Tags:

ios

swift

Im new to this lIbrary and to swift and im looking to remove this "Done" grey bar. How can I go about doing this? And other input would be of great help.

enter image description here

import UIKit
import Firebase
import IQKeyboardManagerSwift

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {

        //Configures all of Firebase
        FIRApp.configure()

        //Configure Key Board manager from Library (IQKEYboardManagerSwift)
        IQKeyboardManager.sharedManager().enable = true

        //Tab Bar Appearnece
        UITabBar.appearance().barTintColor = UIColor.black
        UITabBar.appearance().tintColor = UIColor.white



        return true
    }
like image 680
codechicksrock Avatar asked Mar 13 '17 22:03

codechicksrock


People also ask

How do you hide the Done button in IQKeyboardManager Swift?

viewDidLoad() self. chatTextField. inputAccessoryView = [[UIView alloc] init]; //This will remove toolbar which have done button.

How do you use IQKeyboardManager in Swift 4?

IQKeyboardManager (Objective-C): Just drag and drop IQKeyboardManager directory from demo project to your project. That's it.


1 Answers

In your AppDelegate you can add:

IQKeyboardManager.sharedManager().enableAutoToolbar = false 

to disable the toolbar.

Also under MARK: IQToolbar handling you'll find properties which might help you customize the toolbar the way you want.

Don't forget to explore the IQKeyboardManager.swift class a bit ;]

like image 143
Oleh Zayats Avatar answered Sep 25 '22 09:09

Oleh Zayats