Skip to content

πŸ”„ Modern state management patterns for iOS 17+ - Detroit architecture

Notifications You must be signed in to change notification settings

durellwilson/swiftui-dataflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ”„ SwiftUI Data Flow

Modern state management patterns for iOS 17+

Features

  • πŸ“¦ Observable store pattern
  • πŸ—„οΈ Repository pattern
  • 🎯 Use case pattern
  • πŸ”„ Unidirectional data flow

Usage

import SwiftUIDataFlow

@Observable
class AppStore: Store<AppState> {
    init() {
        super.init(initialState: AppState())
    }
    
    func loadUsers() async {
        send { $0.isLoading = true }
        // Fetch users
        send { $0.isLoading = false }
    }
}

Built for Detroit architects! πŸ—οΈ

About

πŸ”„ Modern state management patterns for iOS 17+ - Detroit architecture

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages