From 8e4215e59de1d35d6953da877057de5bff26906b Mon Sep 17 00:00:00 2001 From: Nikita Vasilev Date: Fri, 2 Jan 2026 11:36:56 +0400 Subject: [PATCH] feat: add fluent tag(_:) setter --- 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 2fc0a6e..3c95a2b 100644 --- a/Sources/FlexUI/Classes/Extensions/FlexUI+UIView.swift +++ b/Sources/FlexUI/Classes/Extensions/FlexUI+UIView.swift @@ -220,4 +220,15 @@ public extension FlexUI where Component: UIView { component.tintColor = tintColor return self } + + /// Sets the tag for the view. + /// + /// - Parameter tag: An integer value identifying the view. + /// - Returns: The current instance, allowing method chaining. + @discardableResult + @MainActor + func tag(_ tag: Int) -> Self { + component.tag = tag + return self + } }