# SwiftUI-Flux
**Repository Path**: mirrors_ra1028/SwiftUI-Flux
## Basic Information
- **Project Name**: SwiftUI-Flux
- **Description**: :rocket: This is a tiny experimental application using SwiftUI with Flux architecture.
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2020-08-18
- **Last Updated**: 2026-02-07
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# :rocket: SwiftUI-Flux
This is a tiny experimental application using `SwiftUI` with `Flux architecture`.
```swift
struct CounterView : View {
enum Action {
case increment
case decrement
}
@State var store = Store(initial: 0) { count, action in
switch action {
case .increment:
return count + 1
case .decrement:
return max(0, count - 1)
}
}
var body: some View {
VStack {
Text("\(store.state)")
HStack {
Button(action: { self.store.dispatch(action: .decrement) }) {
Text("Decrement")
}
Button(action: { self.store.dispatch(action: .increment) }) {
Text("Increment")
}
}
}
}
}
```
## :clipboard: Requirements
- Swift5.1 Beta
- Xcode11.0 Beta
- iOS 13.0 Beta
## :memo: License
SwiftUI-Flux is released under the [MIT License](./LICENSE).