All Projects → ra1028 → SwiftUI-Flux

ra1028 / SwiftUI-Flux

Licence: MIT license
🚀 This is a tiny experimental application using SwiftUI with Flux architecture.

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to SwiftUI-Flux

About Swiftui
Gathering all info published, both by Apple and by others, about new framework SwiftUI.
Stars: ✭ 5,954 (+11350%)
Mutual labels:  wwdc, swiftui
Kunidirectional
The goal of this sample app is to show how we can implement unidirectional data flow architecture based on Flux and Redux on Android... using Kotlin 😉
Stars: ✭ 303 (+482.69%)
Mutual labels:  flux, architecture
Wwdc
You don't have the time to watch all the WWDC session videos yourself? No problem me and many contributors extracted the gist for you 🥳
Stars: ✭ 2,561 (+4825%)
Mutual labels:  wwdc, swiftui
Swiftui
`SwiftUI` Framework Learning and Usage Guide. 🚀
Stars: ✭ 3,989 (+7571.15%)
Mutual labels:  wwdc, swiftui
Suas Ios
Unidirectional data flow architecture implementation for iOS, macOS, tvOS and watchOS
Stars: ✭ 147 (+182.69%)
Mutual labels:  flux, architecture
Swift Composable Architecture
A library for building applications in a consistent and understandable way, with composition, testing, and ergonomics in mind.
Stars: ✭ 5,199 (+9898.08%)
Mutual labels:  architecture, swiftui
Clean Architecture Swiftui
SwiftUI sample app using Clean Architecture. Examples of working with CoreData persistence, networking, dependency injection, unit testing, and more.
Stars: ✭ 2,925 (+5525%)
Mutual labels:  architecture, swiftui
Vueflux
♻️ Unidirectional State Management Architecture for Swift - Inspired by Vuex and Flux
Stars: ✭ 315 (+505.77%)
Mutual labels:  flux, architecture
Suas Android
Unidirectional data flow architecture implementation for Android
Stars: ✭ 80 (+53.85%)
Mutual labels:  flux, architecture
React Native Nw React Calculator
Mobile, desktop and website Apps with the same code
Stars: ✭ 5,116 (+9738.46%)
Mutual labels:  flux, architecture
WWDCNotes
WWDCNotes.com content
Stars: ✭ 343 (+559.62%)
Mutual labels:  wwdc, swiftui
SwiftUICalculator
A calculator app using SwiftUI which is introduced in WWDC19
Stars: ✭ 33 (-36.54%)
Mutual labels:  wwdc, swiftui
kotlin-simple-architecture
Kotlin Simple Architecture
Stars: ✭ 35 (-32.69%)
Mutual labels:  architecture, swiftui
Project01-C-User-Event-Collector
💜🎷 네이버 VIBE 사용자 이벤트 수집기 🎷💜
Stars: ✭ 21 (-59.62%)
Mutual labels:  swiftui
Project03-A-TOTP
TOTP를 이용한 인증관리 Web/App 서비스, '다다익선'
Stars: ✭ 28 (-46.15%)
Mutual labels:  swiftui
gitops-playground
Reproducible infrastructure to showcase GitOps workflows and evaluate different GitOps Operators on Kubernetes
Stars: ✭ 77 (+48.08%)
Mutual labels:  flux
Minimal-React
Minimal React + Redux starter kit for experiments.
Stars: ✭ 43 (-17.31%)
Mutual labels:  flux
ConfettiSwiftUI
SwiftUI Package for Configurable Confetti Animation 🎉
Stars: ✭ 507 (+875%)
Mutual labels:  swiftui
cloudgram
Generate diagrams for your cloud architecture using code
Stars: ✭ 68 (+30.77%)
Mutual labels:  architecture
MNGA
💬 A refreshing NGA Forum App in SwiftUI. Make NGA Great Again! aka "NGA 论坛 iOS 开源客户端"
Stars: ✭ 124 (+138.46%)
Mutual labels:  swiftui

🚀 SwiftUI-Flux

This is a tiny experimental application using SwiftUI with Flux architecture.

struct CounterView : View {
    enum Action {
        case increment
        case decrement
    }

    @State var store = Store<Int, Action>(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")
                }
            }
        }
    }
}

📋 Requirements

  • Swift5.1 Beta
  • Xcode11.0 Beta
  • iOS 13.0 Beta

📝 License

SwiftUI-Flux is released under the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].