Mercurial > public > lazybear
comparison LazyBear/Views/Home/Helpers/TradingDatesItem.swift @ 333:41c9252fc76c
Reorganizing files
author | Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com> |
---|---|
date | Tue, 30 Mar 2021 23:15:49 +0200 |
parents | |
children | 6f904b166564 |
comparison
equal
deleted
inserted
replaced
332:d82e8dd0a828 | 333:41c9252fc76c |
---|---|
1 // | |
2 // TradingDatesItem.swift | |
3 // LazyBear | |
4 // | |
5 // Created by Dennis Concepción Martín on 30/3/21. | |
6 // | |
7 | |
8 import SwiftUI | |
9 | |
10 struct TradingDatesItem: View { | |
11 @Environment(\.colorScheme) var colorScheme | |
12 | |
13 var body: some View { | |
14 RoundedRectangle(cornerRadius: 20) | |
15 .foregroundColor(Color(.secondarySystemBackground)) | |
16 .frame(height: 100) | |
17 .overlay( | |
18 HStack { | |
19 Rectangle() | |
20 .frame(width: 15) | |
21 .foregroundColor(Color("default")) | |
22 | |
23 VStack { | |
24 Text("April") | |
25 .fontWeight(.semibold) | |
26 | |
27 Text("20") | |
28 .font(.title) | |
29 .fontWeight(.semibold) | |
30 .foregroundColor(Color("default")) | |
31 } | |
32 | |
33 Spacer() | |
34 VStack { | |
35 Text("US Markets open in regular hours") | |
36 .fontWeight(.semibold) | |
37 | |
38 Text("Random funny phrase") | |
39 .font(.caption) | |
40 .fontWeight(.semibold) | |
41 .multilineTextAlignment(.center) | |
42 .opacity(0.6) | |
43 } | |
44 | |
45 Spacer() | |
46 } | |
47 .clipShape(RoundedRectangle(cornerRadius: 20)) | |
48 ) | |
49 } | |
50 } | |
51 | |
52 struct TradingDatesItem_Previews: PreviewProvider { | |
53 static var previews: some View { | |
54 TradingDatesItem() | |
55 } | |
56 } |