Releases: tevelee/SwiftUI-Flow
Releases · tevelee/SwiftUI-Flow
3.1.1
3.1.0
3.0.2
Replaced the use of a new API (count(where:)) with .filter(_:).count for compatibility reasons.
https://github.com/swiftlang/swift-evolution/blob/main/proposals/0220-count-where.md was implemented in Swift 6.
3.0.1
3.0.0
- Flexibility behavior: new
.flexibility(.natural)modifier with 3 options:.minimum,.natural, and.maximum.- Minimum mode creates a rigid view taking as little space as possible.
- Natural mode expands the same way it would outside of the flow layout.
- Maximum mode expands and takes as much space as possible, even push itself out to create a whole new line.
- Manual line break support: new
LineBreak()view and.startInNewLine()modifier. - Justified argument: breaking change. This was previously an enum with 3 cases, now it's simplified to a single boolean. It became more powerful with the introduction of flexibility behaviors.
2.5.0
Offering the option to specify both horizontal and vertical alignment.
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)2.4.0
2.3.0
2.2.0
Original Package.swift file remains compatible with swift 5, while a new [email protected] is for opt-in Swift 6.
