From ab9c49dce0d7efe3f94e67d1187499597b889dac Mon Sep 17 00:00:00 2001 From: Nikita Vasilev Date: Fri, 2 Jan 2026 11:33:08 +0400 Subject: [PATCH] feat: add fluent tintColor setter with documentation --- Sources/FlexUI/Classes/Extensions/FlexUI+UIView.swift | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Sources/FlexUI/Classes/Extensions/FlexUI+UIView.swift b/Sources/FlexUI/Classes/Extensions/FlexUI+UIView.swift index d585d90..2fc0a6e 100644 --- a/Sources/FlexUI/Classes/Extensions/FlexUI+UIView.swift +++ b/Sources/FlexUI/Classes/Extensions/FlexUI+UIView.swift @@ -209,4 +209,15 @@ public extension FlexUI where Component: UIView { views.forEach { component.addSubview($0) } return self } + + /// Sets the tint color for the view. + /// + /// - Parameter tintColor: The tint color to apply to the view. + /// - Returns: The current instance, allowing method chaining. + @discardableResult + @MainActor + func tintColor(_ tintColor: UIColor) -> Self { + component.tintColor = tintColor + return self + } }