diegolavalledev / swiftuilib-wrap-stack

MIT License
11 stars 15 forks source link

Center last line in WHStack horizontally #1

Closed beeirl closed 3 years ago

beeirl commented 3 years ago

Is there any possibility to center the last line of the WHStack horizontally? Btw. thanks for sharing your work.

diegolavalledev commented 3 years ago

Thank you, this can be done by taking both vertical and horizontal alignments as arguments. Right now we only take vertical but we could do like ZStack and take both. The new horizontal alignment info goes straight into the frame modifier we already have in place for the individual horizontal stacks. It will be applied to all lines though, including the trailing line. I will try to make this change and release soon. Thanks again for your contribution.

beeirl commented 3 years ago

Thanks for getting back to me. I have forked it and made the changes you just described - can submit a PR if you want.

diegolavalledev commented 3 years ago

Awesome! Yeah or I can just merge it from your fork. Thanks 😊

beeirl commented 3 years ago

Yeah, just have to push my changes (still having them locally atm) - will do in the next hour