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

UIButton Configuration in iOS 15


Today, we are going to learn some new features about the UIButton configurations.

In addition, this will provide you with an easier way to style your app buttons and style changes when the button state changes.

Basic Style For UIButton:

In Xcode 13, there are four pre-defined styles for UIButton.

Firstly, drag a button from the object library and then check the Interface Builder you will find the four basic styles.

UIButton Configuration Image1

UIButton Configurations:

UIButton Configuration is a new structure that defines the behavior and appearance of the button and of its content.

It has many properties for appearance and content for example: titletitlePaddingimageimagePaddingbuttonSizebaseBackgroundColorbackground, etc.


UIButton.Configuration does not have accessible initializers so you can not initialize it.

However, we got four static functions that return us to four different styles.

Customization in UIButton Configuration:

Before passing the configuration, you can customize UIButton Configuration by modifying its properties

There are many properties you can add with Configuration and change your app button appearance and content.

In conclusion, the UIButton configuration makes it easier to modify its property and appearance.

Lastly, Please share your thoughts in the comment area.

For more blogs please click here

. . .

Leave a Comment

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

Be the first to comment.


The support is fast and do everything in their power to make it perfect. If you need customization it's also done right away. I had massive research to select Mobikul and now I'm sure it was the right one.

Igor Souza

Igor Souza

Talk to Sales


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