A flow view for SwiftUI
MIT License
Bot releases are visible (Hide)
This fixes an alignment issue where views could be be misplaced when using a non-leading alignment. This occurred when the bounds proposed was non-zero, which is common when a Layout is used inside another layout container.
Published by toastersocks about 1 year ago
Published by toastersocks about 1 year ago
Published by toastersocks about 1 year ago
Published by toastersocks about 1 year ago
If you don't specify a spacing (or pass nil
as the spacing), the default system spacing will be used between the flow's views.
Published by toastersocks about 1 year ago
center
: Centers subviews horizontally within a row. Rows are centered within the container.centerDistribute
: Extra space is first added equally before the first and after the last subviews up to the spacing amount, then distributed evenly between and around the subviews.centerJustify
: Aligns the horizontal centers of subviews within a row. The first subview aligns with the leading edge and the last subview aligns with the trailing edge of the container. Extra space is distributed evenly between subviews. This is similar to how justified text is laid out in a paragraph.