Skip to content

Instantly share code, notes, and snippets.

@garethpaul
Created January 20, 2020 05:09
Show Gist options
  • Select an option

  • Save garethpaul/4a1980f4065f8bec89bb1335c7fb5d21 to your computer and use it in GitHub Desktop.

Select an option

Save garethpaul/4a1980f4065f8bec89bb1335c7fb5d21 to your computer and use it in GitHub Desktop.
//
// 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