Mercurial > public > lazybear
comparison LazyBear/Views/Company/Helpers/InsiderRow.swift @ 405:fd8df65927e9
Implementing CapsuleChart in insiders
author | Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com> |
---|---|
date | Sat, 05 Jun 2021 19:04:44 +0200 |
parents | |
children | c804ce7a1560 |
comparison
equal
deleted
inserted
replaced
404:444ec927d62f | 405:fd8df65927e9 |
---|---|
1 // | |
2 // InsiderRow.swift | |
3 // LazyBear | |
4 // | |
5 // Created by Dennis Concepción Martín on 5/6/21. | |
6 // | |
7 | |
8 import SwiftUI | |
9 import StockCharts | |
10 | |
11 struct InsiderRow: View { | |
12 var percentageOfWidth: CGFloat | |
13 | |
14 var body: some View { | |
15 RowShape() | |
16 .frame(height: 120) | |
17 .overlay( | |
18 VStack(alignment: .leading) { | |
19 Text("Dennis Concepcion") | |
20 .font(.title3) | |
21 .fontWeight(.semibold) | |
22 | |
23 Text("Random guy") | |
24 CapsuleChartView(percentageOfWidth: percentageOfWidth) | |
25 .padding(.top) | |
26 } | |
27 .padding() | |
28 ,alignment: .leading | |
29 ) | |
30 } | |
31 } | |
32 | |
33 struct InsiderRow_Previews: PreviewProvider { | |
34 static var previews: some View { | |
35 InsiderRow(percentageOfWidth: 0.6) | |
36 } | |
37 } |