Created
January 20, 2020 05:09
-
-
Save garethpaul/4a1980f4065f8bec89bb1335c7fb5d21 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // VenueItemView.swift | |
| // FSQNearby | |
| // | |
| // Created by GPJ on 1/19/20. | |
| // Copyright © 2020 GPJ. All rights reserved. | |
| // | |
| import SwiftUI | |
| struct VenueItemView: View { | |
| let venue: Venue | |
| var body: some View { | |
| GeometryReader { geometry in | |
| HStack(spacing: 0) { | |
| VStack(alignment:.leading) { | |
| Text(self.venue.name) | |
| AddressView(location: self.venue.location) | |
| } .frame(width: geometry.size.width / 2, alignment: .leading) | |
| CategoryIconView(categories: self.venue.categories) | |
| .frame(width: geometry.size.width / 2) | |
| } | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment