In this video, we will learn about UIEdgeInsets, and how to align text and image, or give padding to image and title for UIButton in swift. There are 3 types of edge insets
1) titleEdgeInsets: adding padding to title label rectangle
2) imageEdgeInsets: adding padding to uiimageview
3) contentEdgeInsets: adding padding to rectangle containing title and image
We will learn, how to align text and image on UIButton using imageEdgeInsets, titleEdgeInsets and finally with contentEdgeInsets.
Watch video Swift Tutorials: Aligning text and image on UIButton with help of UIEdgeInsets online without registration, duration hours minute second in high quality. This video was added by user Swift Tutorials 06 February 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 5,884 once and liked it 28 people.