Closed muukii closed 2 years ago
@muukii This looks good! By the name VGridBlock
, I assume we will get a horizontal HGridBlock
in the future?
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)
@JohnEstropia yes, I thought too, it's a bit confusing. I just aligned with SwiftUI's LazyVGrid.init
.
@muukii This looks good! By the name
VGridBlock
, I assume we will get a horizontalHGridBlock
in the future?
Yes, I got knowledge of laying out grids. I could create HGridLayout when we need it.
TextureSwiftSupport has the same layout https://github.com/TextureCommunity/TextureSwiftSupport/blob/d488cc79a0ad9c260b3d4f53b69d4a9e9425e297/TextureSwiftSupport/SpecBuilder/VGridLayout.swift
Next, optimizations