Meshtastic-Apple/MeshtasticClient/Views/Helpers/TabBarIcon.swift
2021-09-21 20:49:12 -07:00

23 lines
569 B
Swift

import Foundation
import SwiftUI
struct TabBarIcon: View {
let width, height: CGFloat
let systemIconName, tabName: String
var body: some View {
VStack {
Image(systemName: systemIconName)
.symbolRenderingMode(.hierarchical)
.resizable()
.aspectRatio(contentMode: .fit)
.frame(width: width, height: height)
.padding(.top, 10)
Text(tabName)
.font(.footnote)
Spacer()
}
}
}