Skip to content

Commit f105268

Browse files
committed
feat: add fluent tintColor setter with documentation
1 parent 01088ea commit f105268

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
@@ -176,4 +176,15 @@ public extension FlexUI where Component: UIView {
176176
component.setContentCompressionResistancePriority(priority, for: axis)
177177
return self
178178
}
179+
180+
/// Sets the tint color for the view.
181+
///
182+
/// - Parameter tintColor: The tint color to apply to the view.
183+
/// - Returns: The current instance, allowing method chaining.
184+
@discardableResult
185+
@MainActor
186+
func tintColor(_ tintColor: UIColor) -> Self {
187+
component.tintColor = tintColor
188+
return self
189+
}
179190
}

0 commit comments

Comments
 (0)