Skip to content

1.0.0

Choose a tag to compare

@github-actions github-actions released this 26 Oct 16:42
· 70 commits to main since this release

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 ActionTask for parent-child communication
  • @observable Support: Uses SwiftUI's standard @Observable instead 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

  1. Select File → Add Package Dependencies
  2. Enter: https://github.com/ViewFeature/Flow.git
  3. Select version: 1.0.0 or later

Recommended: Add -default-isolation MainActor to your target's Build Settings → Other Swift Flags.

Documentation

📖 Full Documentation

Full Changelog: https://github.com/ViewFeature/Flow/commits/1.0.0