Skip to content

Commit dfed546

Browse files
authored
feat: add fluent tintColor setter with documentation (#50)
1 parent 6812f1f commit dfed546

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,4 +209,15 @@ public extension FlexUI where Component: UIView {
209209
views.forEach { component.addSubview($0) }
210210
return self
211211
}
212+
213+
/// Sets the tint color for the view.
214+
///
215+
/// - Parameter tintColor: The tint color to apply to the view.
216+
/// - Returns: The current instance, allowing method chaining.
217+
@discardableResult
218+
@MainActor
219+
func tintColor(_ tintColor: UIColor) -> Self {
220+
component.tintColor = tintColor
221+
return self
222+
}
212223
}

0 commit comments

Comments
 (0)