Mercurial > public > lazybear
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/LazyBear/Views/Company/Helpers/InsiderRow.swift Sat Jun 05 19:04:44 2021 +0200 @@ -0,0 +1,37 @@ +// +// InsiderRow.swift +// LazyBear +// +// Created by Dennis Concepción Martín on 5/6/21. +// + +import SwiftUI +import StockCharts + +struct InsiderRow: View { + var percentageOfWidth: CGFloat + + var body: some View { + RowShape() + .frame(height: 120) + .overlay( + VStack(alignment: .leading) { + Text("Dennis Concepcion") + .font(.title3) + .fontWeight(.semibold) + + Text("Random guy") + CapsuleChartView(percentageOfWidth: percentageOfWidth) + .padding(.top) + } + .padding() + ,alignment: .leading + ) + } +} + +struct InsiderRow_Previews: PreviewProvider { + static var previews: some View { + InsiderRow(percentageOfWidth: 0.6) + } +}