Android App Development
iOS App Development
Flutter App Development
Cross Platform App Development
Hire on-demand project developers and turn your idea into working reality.
Big thanks to Webkul and his team for helping get Opencart 3.0.3.7 release ready!
Deniel Kerr
Founder. Opencart
Top Partners
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 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: title, titlePadding, image, imagePadding, buttonSize, baseBackgroundColor, background, etc.
title
titlePadding
image
imagePadding
buttonSize
baseBackgroundColor
background
Initialization:
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
Your email address will not be published. Required fields are marked*
Name*
Email*
Save my name email and website in this browser for the next time I comment.
Be the first to comment.
We use cookies to personalize your experience. By continuing to visit this website you agree to our use of cookies. Learn more about privacy policy
Webkul is a truly trusted and supported IT Company to develop business ideas for e-commerce. They provide professional support after deploying the solution to production and be responsible to act for fixing the reported issues or system errors. We highly encourage to deal with Webkul for business development.
Hussein Zawia
Co-founder, 24Dokan
USA
India
Global
Name
Email
Enquiry or Requirement
If you have more details or questions, you can reply to the received confirmation email.