Closed Omarbasaleh closed 3 months ago
Thank you. I'll get right on with the modifications. The isLayoutMarginsRelativeArrangement is a UIStackView parameter, but the directionalLayoutMargins is a UIView parameter, so I'll extend it to each.
add some functions
extension UIStackView {
@discardableResult
func margins(_ margins: NSDirectionalEdgeInsets) -> Self {
self.isLayoutMarginsRelativeArrangement(true).directionalLayoutMargins(margins)
}
}
You may add support to
directionalLayoutMargins
ofUIStackView
. So we can use the build in support of margins instead of using extra views when we usepadding()
.