Created
January 20, 2020 05:24
-
-
Save garethpaul/a83eb00b2dd571e4c26e7a2080fb6334 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
| // | |
| // 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