Skip to content

Commit

Permalink
UIButton contentHorizontalAlignment added.
Browse files Browse the repository at this point in the history
  • Loading branch information
devuzan committed Aug 25, 2022
1 parent 5f6925a commit e07330a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Sources/UIKitBuilder/UIButton+.swift
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,15 @@ public extension UIButton {
setImage(image?.withRenderingMode(renderingMode), for: .normal)
return self
}

@discardableResult func contentVerticalAlignment(_ alignment: UIControl.ContentVerticalAlignment) -> Self {
contentVerticalAlignment = alignment
return self
}

@discardableResult func contentHorizontalAlignment(_ alignment: UIControl.ContentHorizontalAlignment) -> Self {
contentHorizontalAlignment = alignment
return self
}

}

0 comments on commit e07330a

Please sign in to comment.