black friday sale

Flat 10% off on the purchase of any two apps or more. Use coupon code - FESTIVAL10

Grab It Now
Check Mobile App
Read now
Start a Project

Customise the UISearchBar in Swift

Save

Please find the steps to customise the UISearchBar as given below:

UISearchBar contains the UITextField which can be identified through key “searchField”.

Therefore we can access the UITextField through the key and perform necessary changes with it.

Change Search Bar Background Color

Change Search Bar Text Color

Change Search Bar Placeholder Color

Change Search Bar Default Image Color

The left hand default search image in UISearchBar represents the left view of the UITextField.

The Image is rendered to change it to the desired colour.

Hope it will help you in customising the UISearchBar in your app.

. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


2 comments

  • soroush
    That was awesome and very helpful, thank you.
    • Debabrata Roy (Moderator)
      Glad to help.
  • css.php

    Very good company, we did get app extension for Magento 2 website. The support was very good they help us through the process. Webkul team is very supportive, I would recommend them.

    Yasser Mohamed

    Yasser Mohamed

    Talk to Sales

    Global

    Live Chat
    Start a Project

      Message Sent!

      If you have more details or questions, you can reply to the received confirmation email.

      Back to Home