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
14 changes: 14 additions & 0 deletions Sources/FlexUI/Classes/Extensions/FlexUI+UIStackView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,18 @@ public extension FlexUI where Component: UIStackView {
component.directionalLayoutMargins = value
return self
}

/// Applies custom spacing after the specified view.
///
/// - Parameters:
/// - spacing: The spacing between views.
/// - arrangedSubview: The subview after which the custom spacing should be applied.
///
/// - Returns: The current instance of `FlexUI` for further configuration.
@discardableResult
@MainActor
func setCustomSpacing(_ spacing: CGFloat, after arrangedSubview: UIView) -> Self {
component.setCustomSpacing(spacing, after: arrangedSubview)
return self
}
}
Loading