Skip to content

Releases: tevelee/SwiftUI-Flow

3.1.1

23 Jun 16:27
3.1.1
d227f99

Choose a tag to compare

3.1.1 Pre-release
Pre-release

Resolves #31

3.1.0

10 Jun 07:35
3.1.0
6dc1e0b

Choose a tag to compare

Compatibility with Swift 6.2

3.0.2

21 Mar 14:22
3.0.2
fd755bc

Choose a tag to compare

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

21 Mar 14:21
3.0.1
5b2f4b3

Choose a tag to compare

Bugfix for NaN values

3.0.0

19 Dec 16:32
3.0.0
860e93e

Choose a tag to compare

  • 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

16 Aug 12:10
2.5.0
b528bd0

Choose a tag to compare

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)

2.4.0

31 Jul 16:23
2.4.0
0f3e7f2

Choose a tag to compare

  • Fixed a warning related to isolation that becomes an error in Swift 6
  • Enabled StrictConcurrency for the Swift 5 version of Package.swift
  • Opted into the upcoming feature ExistentialAny

2.3.0

24 Jul 16:09
2.3.0
5fdf6ba

Choose a tag to compare

Fit subviews that are larger than the proposed size

2.2.0

14 Jul 15:25
2.2.0
633e0aa

Choose a tag to compare

Original Package.swift file remains compatible with swift 5, while a new [email protected] is for opt-in Swift 6.

2.1.0

08 Jul 16:22
2.1.0
e9ef30b

Choose a tag to compare

Swift 6 support