Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Swift 3 / IQKeyboardManager : How do you change background color of toolbar , done color, arrow colors?

How do you change background color of toolbar , done color, arrow colors, and hide the text title on the toolbar in the middle?

like image 480
Brett Taylor Avatar asked Jan 04 '23 09:01

Brett Taylor


1 Answers

You can change the appearance of Next/Previous(arrow) and Done buttons color by setting tintColor of the toolbar using below code.

To change arrow and done button colors to red:

IQKeyboardManager.shared.toolbarTintColor = .red

To hide text title on the toolbar in the middle

IQKeyboardManager.shared.shouldShowToolbarPlaceholder = false

I haven't find any property to change bar color but can change background color of IQToolbar class itself. If you find any, then add here for other's reference.

like image 59
Surjeet Singh Avatar answered May 07 '23 14:05

Surjeet Singh