Skip to content

Commit ace08e7

Browse files
authored
feat: support optional title for button (#49)
1 parent 01088ea commit ace08e7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sources/FlexUI/Classes/Extensions/FlexUI+UIButton.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public extension FlexUI where Component: UIButton {
3030
/// - Returns: The current instance of `FlexUI` for further configuration.
3131
@discardableResult
3232
@MainActor
33-
func title(_ title: String, for state: UIControl.State = .normal) -> Self {
33+
func title(_ title: String?, for state: UIControl.State = .normal) -> Self {
3434
component.setTitle(title, for: state)
3535
return self
3636
}

0 commit comments

Comments
 (0)