skip to Main Content

UIButton titleLabel has padding – Ios swift

UIButton title label has top and bottom padding, I want to remove padding. Set UIButton content mode did not work. Here is my code lazy var button: UIButton = { let button = UIButton(type: .custom) button.translatesAutoresizingMaskIntoConstraints = false button.setTitleColor(ThemeColor.red, for:…

VIEW QUESTION
Back To Top
Search