Mercurial > public > lazybear
comparison LazyBear/Helpers/SearchRow.swift @ 465:6953d83060a4
New design
author | Dennis Concepción Martín <dennisconcepcionmartin@gmail.com> |
---|---|
date | Sat, 17 Jul 2021 17:58:57 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
464:04e430ef254a | 465:6953d83060a4 |
---|---|
1 // | |
2 // SearchRow.swift | |
3 // lazybear | |
4 // | |
5 // Created by Dennis Concepción Martín on 17/07/2021. | |
6 // | |
7 | |
8 import SwiftUI | |
9 | |
10 struct SearchRow: View { | |
11 var company: SearchModel | |
12 | |
13 var body: some View { | |
14 HStack { | |
15 VStack(alignment: .leading) { | |
16 Text("\(company.symbol!)") | |
17 .font(.headline) | |
18 | |
19 Text("\(company.securityName!)") | |
20 .font(.subheadline) | |
21 .opacity(0.5) | |
22 .lineLimit(1) | |
23 } | |
24 | |
25 Spacer() | |
26 } | |
27 } | |
28 } | |
29 | |
30 struct SearchRow_Previews: PreviewProvider { | |
31 static var previews: some View { | |
32 SearchRow(company: SearchModel(symbol: "AAPL", securityName: "Apple Inc")) | |
33 } | |
34 } |