WrappingHStack icon indicating copy to clipboard operation
WrappingHStack copied to clipboard

Option to use both .top vertical alignment and .center horizontal alignment

Open matthewkrom opened this issue 1 year ago • 1 comments

Hello! Thanks for this little package. While exploring it, I realized my main use would be to show a collection of items, top-aligned in each row, but with each row centered (equal maximum leading space and trailing space per row). It doesn't look like that alignment option is supported—is that right? Would it fit into the way you've designed the package? (Could you define an alignment value that covers specific horizontal and vertical values combined?)

Matt

matthewkrom avatar Jan 17 '25 17:01 matthewkrom

Hi, @matthewkrom! Thanks for exploring the package and sharing your feedback.

For your use case (top-aligned items in each row, with rows centered overall), have you tried using alignment: .top? The GIF below demonstrates how alignment: .top looks in practice—let me know if this is what you’re looking for. If not, could you share a wireframe or a simple sketch of your ideal layout? That would help me better understand your needs and explore possible solutions.

Image

Looking forward to your input!

ksemianov avatar Jan 17 '25 18:01 ksemianov