Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save garethpaul/a83eb00b2dd571e4c26e7a2080fb6334 to your computer and use it in GitHub Desktop.
//
// AddressView.swift
// FSQNearby
//
// Created by GPJ on 1/19/20.
// Copyright © 2020 GPJ. All rights reserved.
//
import SwiftUI
struct AddressView: View {
let location: Location
var body: some View {
VStack() {
if location.address != nil {
Text(location.address!)
}
if location.city != nil {
Text(location.city!)
}
if location.country != nil {
Text(location.country!)
}
}.font(.system(size: 10))
.frame(alignment: .leading)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment