Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions Sources/FlexUI/Classes/Extensions/FlexUI+UIView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}