FluidGroup / MondrianLayout

🏗 A way to build AutoLayout rapidly than using InterfaceBuilder(XIB, Storyboard) in iOS.
https://medium.com/geekculture/describing-autolayout-with-imaginable-how-it-lays-out-programmatically-mondrianlayout-71efe82f3149
MIT License
168 stars 11 forks source link

[Early development] Introduce VGridBlock #70

Closed muukii closed 2 years ago

muukii commented 2 years ago
CleanShot 2021-12-15 at 02 57 45@2x

Next, optimizations

JohnEstropia commented 2 years ago

@muukii This looks good! By the name VGridBlock, I assume we will get a horizontal HGridBlock in the future?

JohnEstropia commented 2 years ago

It's a bit confusing that both columns and rows use the word spacing:. What if we specify them using hSpacing: and vSpacing? (Though I understand it's different from SwiftUI's thinking)

muukii commented 2 years ago

@JohnEstropia yes, I thought too, it's a bit confusing. I just aligned with SwiftUI's LazyVGrid.init.

muukii commented 2 years ago

@muukii This looks good! By the name VGridBlock, I assume we will get a horizontal HGridBlock in the future?

Yes, I got knowledge of laying out grids. I could create HGridLayout when we need it.

muukii commented 2 years ago

TextureSwiftSupport has the same layout https://github.com/TextureCommunity/TextureSwiftSupport/blob/d488cc79a0ad9c260b3d4f53b69d4a9e9425e297/TextureSwiftSupport/SpecBuilder/VGridLayout.swift