Meshtastic-Apple/Meshtastic/Views/Helpers/MeshtasticLogo.swift

38 lines
672 B
Swift
Raw Normal View History

2022-10-06 21:05:37 -07:00
//
// MeshtasticLogo.swift
// Meshtastic
//
// Copyright(c) Garth Vander Houwen 10/6/22.
//
import SwiftUI
struct MeshtasticLogo: View {
2023-03-06 10:33:18 -08:00
2022-10-06 21:05:37 -07:00
@Environment(\.colorScheme) var colorScheme
2023-03-06 10:33:18 -08:00
2022-10-06 21:05:37 -07:00
var body: some View {
2023-03-06 10:33:18 -08:00
2022-11-17 21:44:07 -08:00
#if targetEnvironment(macCatalyst)
VStack {
Image("logo-white")
.resizable()
.renderingMode(.template)
.foregroundColor(.accentColor)
.scaledToFit()
}
.padding(.bottom, 5)
.padding(.top, 5)
.offset(x: -15)
#else
VStack {
Image(colorScheme == .dark ? "logo-white" : "logo-black")
.resizable()
.renderingMode(.template)
.scaledToFit()
}
.padding(.bottom, 5)
.offset(x: -15)
#endif
2022-10-06 21:05:37 -07:00
}
}