Skip to content

Releases: tevelee/SwiftUI-Flow

3.0.0

19 Dec 16:32
3.0.0
860e93e
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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
Compare
Choose a tag to compare

Swift 6 support

2.0.0

08 Jul 16:09
2.0.0
f456746
Compare
Choose a tag to compare

Bump deployment target to iOS 16, macOS 13, tvOS 16, watchOS 9

1.7.0

08 Jul 16:04
1.7.0
733c317
Compare
Choose a tag to compare

Includes a fix for #16 as well as a refactored layout implementation using separate LineBreaking strategies.

1.6.0

27 Jun 20:17
1.6.0
3f6bd56
Compare
Choose a tag to compare

Added @inlinable and @usableFromInline annotations to key functions and properties.
These changes enhance performance by allowing the Swift compiler to inline code across module boundaries, reducing function call overhead and improving execution speed.

1.5.2

27 Jun 16:26
1.5.2
901c468
Compare
Choose a tag to compare
  • Updated README and inline header documentation
  • Improved line breaking algorithm