Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save garethpaul/70e86da6f52860ef2c2729c208aacb01 to your computer and use it in GitHub Desktop.
//
// CategoryIconView.swift
// FSQNearby
//
// Created by GPJ on 1/19/20.
// Copyright © 2020 GPJ. All rights reserved.
//
import SwiftUI
struct CategoryIconView: View {
let categories: [Category]
var body: some View {
VStack(){
if categories.first != nil {
IconView(withURL: (categories.first!.icon?.iconPrefix)! + "64.png")
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment