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

Overview

🚀 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.

You might also like...
'SwiftUI Apps' application that made with SwiftUI
'SwiftUI Apps' application that made with SwiftUI

SwiftUI Apps 'SwiftUI Apps' application that made with SwiftUI, which includes many sample applications, was made by Hamit Seyrek, the founder of the

The demo app demonstrates a real-time application using FindSurface to search point clouds, which ARKit provides, for geometry shapes.
The demo app demonstrates a real-time application using FindSurface to search point clouds, which ARKit provides, for geometry shapes.

FindSurface-GUIDemo-iOS (Swift) CurvSurf FindSurface™ GUIDemo for iOS (Swift) Overview This demo app demonstrates a real-time application using FindSu

OMDburner is a free and Open Source Application developed using Swift.
OMDburner is a free and Open Source Application developed using Swift.

OMDburner is a free and Open Source Application developed using Swift.

Instagram Clone Application Built Using Swift And Firebase
Instagram Clone Application Built Using Swift And Firebase

InstagramClone Bu instagram klon uygulamasında CoreLocation, Snapkit, Firebase, KingFisher, IQKeyboardManagerSwift kütüphaneleri kullanılmıştır. Kulla

SwiftUI Project built using the fundamentals of SwiftUI that I have learned.

GhibliLog About: I wanted to test my ability to create an application with a responsive SwiftUI interface that would format and display data pulled fr

Todolist-swiftui - An example of using SwiftUI with CoreData

todolist-swiftui An example of using SwiftUI with CoreData Installation Install

Simple SwiftUI application that allows users to find the resistance value of any four-band resistor by inputting the colors of the bands on the resistors.

Resistor-Finder Simple SwiftUI application that allows users to find the resistance value of any four-band resistor by inputting the colors of the ban

An example of adding a faux notch using AppKit + SwiftUI
An example of adding a faux notch using AppKit + SwiftUI

faux-notch An example of adding a faux notch using AppKit + SwiftUI What is this? It's a bare-bones example that renders a fake MacBook notch in macOS

Owner
Ryo Aoyama
⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛ ⬛⬛⬛⬜⬛⬛⬛⬛⬛⬜⬛⬛⬛ ⬛⬛⬛⬛⬜⬛⬛⬛⬜⬛⬛⬛⬛ ⬛⬛⬛⬜⬜⬜⬜⬜⬜⬜⬛⬛⬛ ⬛⬛⬜⬜⬛⬜⬜⬜⬛⬜⬜⬛⬛ ⬛⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬛ ⬛⬜⬛⬜⬜⬜⬜⬜⬜⬜⬛⬜⬛ ⬛⬜⬛⬜⬛⬛⬛⬛⬛⬜⬛⬜⬛ ⬛⬛⬛⬛⬜⬜⬛⬜⬜⬛⬛⬛⬛ ⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛
Ryo Aoyama
LOL Champions app: a small Multi-Module demo application to demonstrate modern iOS application tech-stacks with a Multi-module and MVVM architecture

LOL Champions app: a small Multi-Module demo application to demonstrate modern iOS application tech-stacks with a Multi-module and MVVM architecture

Ahmed Nasser 5 Jun 9, 2022
Weather Forecast Assigment is an iOS application built to highlight MVP and Clean Architecture concepts

Weather Forecast Assigment - iOS - MVP + Clean Architecture Description Weather Forecast Assigment is an iOS application built to highlight MVP (Model

Khôi Việt 2 Oct 30, 2021
NewsApp-MVVM - News application with MVVM architecture

NewsApp-MVVM News application with MVVM architecture.

Fırat Onurcan POLAT 1 Jan 29, 2022
Exchanger - a simple iOS application demonstrating one of approaches to implement VIPER 💎 architecture in modern Objective-C

The Exchanger is a simple iOS application demonstrating one of approaches to implement VIPER ?? architecture in modern Objective-C.

Vladimir Kaltyrin 11 Oct 11, 2022
A sample iOS app built using the Clean Swift architecture

Main Purpose is to create a simple project for Clean-Swift This project wrote with using Clean-Swift and MVP Design Pattern

Eyup Cimen 8 Oct 24, 2022
A demo project using VIPER architecture and building user interface programmatically

ProductDiscovery A demo project that building a UIKit user interface programmatically. Because the UI is made of code very long so I have separated it

Vinh Vo 7 Oct 1, 2021
REDUX like architecture sample for iOS

perdux_sample_swiftUI REDUX like architecture sample for iOS (target 14.*) Motivation: to share reactive architecture approach with single direction d

alexis 3 Jan 27, 2022
Merqueo app uses VIPER architecture

merqueo-test How the app works Instalation This project require XCode 13.0, Swift 5.0 and should be run on device with iOS 15+ and then, you should ru

Brayam Mora 0 Oct 20, 2021
A simple in iOS to demonstrate a basic MVVM architecture.

Repository A Simple iOS application in swift with MVVM-C architecture. Achitecture This project build on MVVM-C (Model, View, ViewModel, Coordinator)

Pankaj Kumar Jha 0 Oct 24, 2021
Challenge-vip-delivery - Project for VIP (Clean Swift) Architecture Dev Sprints on Devpass

VIP (Clean Swift) - Delivery App ?? Neste desafio, aplicaremos conceitos da arquitetura VIP para finalizar a implementação de um aplicativo. Desenvolv

Devpass 5 Oct 24, 2022