Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support spacing property on HStack/VStack #273

Merged
merged 10 commits into from
Jul 7, 2021
Merged

Support spacing property on HStack/VStack #273

merged 10 commits into from
Jul 7, 2021

Conversation

MaxDesiatov
Copy link
Collaborator

@MaxDesiatov MaxDesiatov commented Sep 2, 2020

It's much easier to implement stack spacing when stacks are rendered as single-row or single-column grids, and grid gaps already work in all browsers. For this we need to slightly bump browser version requirements, most notably from Safari 11 to Safari 12.

Resolves #272.

@MaxDesiatov MaxDesiatov added bug Something isn't working SwiftUI compatibility Tokamak API differences with SwiftUI labels Sep 2, 2020
@j-f1
Copy link
Member

j-f1 commented Sep 3, 2020

Definitely reasonable to use grids for Stacks at least until gap is fully supported!

@carson-katri
Copy link
Member

Yeah, I have no problems with using grid.

@souporserious
Copy link

CSS Grid is a great way to support child spacing! I wrote about using them in React here. Would love to help out with this if you're looking for contributors 🙂

@MaxDesiatov
Copy link
Collaborator Author

We're always looking for contributors, thank you for the offer! Please feel free to open a PR even if you just started working on this. You can mark it as a draft even if it's work in progress, that will let everyone know what you're working on. Just open an issue if you see any problems or need any help! 🙂

@MaxDesiatov MaxDesiatov marked this pull request as ready for review July 4, 2021 20:11
@MaxDesiatov MaxDesiatov added the DOM/HTML renderer Tokamak in the browser label Jul 4, 2021
@MaxDesiatov MaxDesiatov requested a review from a team July 4, 2021 20:18
@MaxDesiatov MaxDesiatov merged commit 719c109 into main Jul 7, 2021
@MaxDesiatov MaxDesiatov deleted the stack-spacing branch July 7, 2021 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working DOM/HTML renderer Tokamak in the browser SwiftUI compatibility Tokamak API differences with SwiftUI
Development

Successfully merging this pull request may close these issues.

spacing initializer argument has no effect in VStack
4 participants