Skip to content

Commit 8f77d66

Browse files
authored
feat(ui): add fluent wrapper for stack view custom spacing (#47)
1 parent 72692e9 commit 8f77d66

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,18 @@ public extension FlexUI where Component: UIStackView {
7979
component.directionalLayoutMargins = value
8080
return self
8181
}
82+
83+
/// Applies custom spacing after the specified view.
84+
///
85+
/// - Parameters:
86+
/// - spacing: The spacing between views.
87+
/// - arrangedSubview: The subview after which the custom spacing should be applied.
88+
///
89+
/// - Returns: The current instance of `FlexUI` for further configuration.
90+
@discardableResult
91+
@MainActor
92+
func setCustomSpacing(_ spacing: CGFloat, after arrangedSubview: UIView) -> Self {
93+
component.setCustomSpacing(spacing, after: arrangedSubview)
94+
return self
95+
}
8296
}

0 commit comments

Comments
 (0)