Mercurial > public > lazybear
comparison LazyBear/Views/Home/Helpers/SectorRow.swift @ 324:3e64824cca3e
Working on HomeView
author | Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com> |
---|---|
date | Mon, 29 Mar 2021 20:59:41 +0200 |
parents | |
children | 2fabdc393675 |
comparison
equal
deleted
inserted
replaced
323:65f537dae6e5 | 324:3e64824cca3e |
---|---|
1 // | |
2 // SectorRow.swift | |
3 // LazyBear | |
4 // | |
5 // Created by Dennis Concepción Martín on 28/3/21. | |
6 // | |
7 | |
8 import SwiftUI | |
9 | |
10 struct SectorRow: View { | |
11 | |
12 var body: some View { | |
13 VStack(alignment: .leading) { | |
14 Text("Performance by sector") | |
15 .font(.title3) | |
16 .fontWeight(.semibold) | |
17 .padding([.top, .horizontal]) | |
18 | |
19 ScrollView(.horizontal, showsIndicators: false) { | |
20 HStack(spacing: 20) { | |
21 ForEach((1..<10)) { _ in | |
22 SectorItem() | |
23 } | |
24 } | |
25 .padding() | |
26 } | |
27 .frame(height: 170) | |
28 } | |
29 .padding(.bottom) | |
30 } | |
31 } | |
32 | |
33 struct SectorRow_Previews: PreviewProvider { | |
34 static var previews: some View { | |
35 SectorRow() | |
36 } | |
37 } |