This commit is contained in:
Ivan Vorobei
2019-06-26 22:12:35 +03:00
parent 2477f5d038
commit 48001a8e9a
1363 changed files with 6 additions and 3 deletions

View File

@@ -0,0 +1,36 @@
//
// UserRw.swift
// SwiftUIDemo
//
// Created by Thomas Ricouard on 04/06/2019.
// Copyright © 2019 Thomas Ricouarf. All rights reserved.
//
import SwiftUI
struct UserRow : View {
let user: User
var body: some View {
VStack {
HStack {
Image(systemName: user.imageName)
VStack {
Text(user.name)
Text(user.username)
.color(.secondary)
.lineLimit(0)
}
}
}
}
}
#if DEBUG
struct UserRw_Previews : PreviewProvider {
static var previews: some View {
UserRow(user: sampleData[0])
}
}
#endif