Add SwiftUI + Redux

This commit is contained in:
Ivan Vorobei
2019-06-07 08:58:01 +03:00
parent 5b758db8cd
commit f385cd4929
29 changed files with 1311 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
//
// User.swift
// SwiftUIDemo
//
// Created by Thomas Ricouard on 04/06/2019.
// Copyright © 2019 Thomas Ricouarf. All rights reserved.
//
import Foundation
import SwiftUI
struct User: Identifiable {
let id: Int
var name: String
var username: String
let imageName = "person"
}
let sampleData = [User(id: 0, name: "user 1", username: "@user1"),
User(id: 1, name: "user 2", username: "@user2")]