Skip to content

2.5.0

Compare
Choose a tag to compare
@tevelee tevelee released this 16 Aug 12:10
· 8 commits to main since this release
2.5.0
b528bd0

Offering the option to specify both horizontal and vertical alignment.

hflow-center

HFlow(horizontalAlignment: .center, verticalAlignment: .top) {
    ForEach(colors, id: \.description) { color in
        RoundedRectangle(cornerRadius: 10)
            .fill(color.gradient)
            .frame(width: .random(in: 30...60), height: 30)
    }
}
.frame(maxWidth: 300)