1.0.0
Flow 1.0.0 - First Stable Release 🎉
Flow is a unidirectional data flow library for SwiftUI applications with full support for Swift 6 Approachable Concurrency.
Key Features
- No Global Store: Each view holds its own state with
@State - Result-Returning Actions: Actions can return results through
ActionTaskfor parent-child communication - @observable Support: Uses SwiftUI's standard
@Observableinstead of@ObservableObject - Approachable Concurrency: Full Swift 6 concurrency support with
defaultIsolation(MainActor.self) - Observable Actions: Middleware system for cross-cutting concerns like logging and analytics
Requirements
- iOS 18.0+ / macOS 15.0+ / watchOS 11.0+ / tvOS 18.0+
- Swift 6.2+
- Xcode 16.2+
Installation
Swift Package Manager
Add Flow to your Package.swift:
```swift
dependencies: [
.package(url: "https://github.com/ViewFeature/Flow.git", from: "1.0.0")
]
```
Xcode
- Select File → Add Package Dependencies
- Enter:
https://github.com/ViewFeature/Flow.git - Select version:
1.0.0or later
Recommended: Add -default-isolation MainActor to your target's Build Settings → Other Swift Flags.
Documentation
Full Changelog: https://github.com/ViewFeature/Flow/commits/1.0.0