Swift Tutorials: Aligning text and image on UIButton with help of UIEdgeInsets

Published: 06 February 2020
on channel: Swift Tutorials
5,884
28

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, duration hours minute second in high quality that is uploaded to the channel Swift Tutorials 06 February 2020. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 5,884 times and liked it 28 visitors.