diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/LazyBear/Helpers/AboutSection.swift	Sat Jul 17 17:58:57 2021 +0100
@@ -0,0 +1,26 @@
+//
+//  AboutSection.swift
+//  lazybear
+//
+//  Created by Dennis Concepción Martín on 17/07/2021.
+//
+
+import SwiftUI
+
+struct AboutSection: View {
+    var companyInfo: CompanyInfoModel
+    
+    var body: some View {
+        Text("About")
+            .font(.title2)
+            .fontWeight(.semibold)
+        
+        Text(companyInfo.description ?? "")
+    }
+}
+
+struct AboutSection_Previews: PreviewProvider {
+    static var previews: some View {
+        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"))
+    }
+}