Mercurial > public > lazybear
view LazyBear/Views/Search/Helpers/CompanyRow.swift @ 346:80bfa88c6b0f
Implementing Prop API
author | Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com> |
---|---|
date | Sun, 11 Apr 2021 19:55:47 +0200 |
parents | d17dd5c28211 |
children |
line wrap: on
line source
// // CompanyRow.swift // LazyBear // // Created by Dennis Concepción Martín on 3/4/21. // import SwiftUI //struct CompanyRow: View { // var company: SearchModel // // var body: some View { // HStack { // VStack(alignment: .leading) { // Text(company.symbol.uppercased()) // .fontWeight(.semibold) // // Text(company.securityName.capitalized) // .lineLimit(1) // } // // Spacer() // // VStack(alignment: .trailing) { // Text(company.currency) // .fontWeight(.semibold) // // Text(company.region) // } // } // } //} // //struct CompanyRow_Previews: PreviewProvider { // static var previews: some View { // CompanyRow(company: SearchModel(securityName: "apple inc", symbol: "aapl", region: "US", currency: "USD")) // } //}