mirror of
https://github.com/ivanvorobei/SwiftUI.git
synced 2026-04-20 07:41:28 +02:00
Update
This commit is contained in:
13
Other Projects/SwiftUI + Redux/SwiftUIDemo/flux/actions/Action.swift
Executable file
13
Other Projects/SwiftUI + Redux/SwiftUIDemo/flux/actions/Action.swift
Executable file
@@ -0,0 +1,13 @@
|
||||
//
|
||||
// Action.swift
|
||||
// SwiftUIDemo
|
||||
//
|
||||
// Created by Thomas Ricouard on 05/06/2019.
|
||||
// Copyright © 2019 Thomas Ricouarf. All rights reserved.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
protocol Action {
|
||||
|
||||
}
|
||||
19
Other Projects/SwiftUI + Redux/SwiftUIDemo/flux/actions/UsersAction.swift
Executable file
19
Other Projects/SwiftUI + Redux/SwiftUIDemo/flux/actions/UsersAction.swift
Executable file
@@ -0,0 +1,19 @@
|
||||
//
|
||||
// UsersAction.swift
|
||||
// SwiftUIDemo
|
||||
//
|
||||
// Created by Thomas Ricouard on 05/06/2019.
|
||||
// Copyright © 2019 Thomas Ricouarf. All rights reserved.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
enum UserActions: Action {
|
||||
case addUser
|
||||
case deleteUser(index: Int)
|
||||
case move(from: Int, to: Int)
|
||||
case editUser(id: Int, name: String, username: String)
|
||||
case testEditFirstUser
|
||||
case startEditUser
|
||||
case stopEditUser
|
||||
}
|
||||
Reference in New Issue
Block a user