Mercurial > public > lazybear
comparison LazyBear/Helpers/AboutSection.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 // AboutSection.swift | |
3 // lazybear | |
4 // | |
5 // Created by Dennis Concepción Martín on 17/07/2021. | |
6 // | |
7 | |
8 import SwiftUI | |
9 | |
10 struct AboutSection: View { | |
11 var companyInfo: CompanyInfoModel | |
12 | |
13 var body: some View { | |
14 Text("About") | |
15 .font(.title2) | |
16 .fontWeight(.semibold) | |
17 | |
18 Text(companyInfo.description ?? "") | |
19 } | |
20 } | |
21 | |
22 struct AboutSection_Previews: PreviewProvider { | |
23 static var previews: some View { | |
24 AboutSection(companyInfo: CompanyInfoModel(symbol: "AAPL", companyName: "Apple Inc", description: "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.", address: "One Apple Park Way", state: "CA", country: "US")) | |
25 } | |
26 } |