mirror of
https://github.com/VernissageApp/Vernissage.git
synced 2024-12-29 10:20:11 +01:00
29 lines
652 B
Swift
29 lines
652 B
Swift
//
|
|
// https://mczachurski.dev
|
|
// Copyright © 2022 Marcin Czachurski and the repository contributors.
|
|
// Licensed under the MIT License.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct LabelIcon: View {
|
|
let iconName: String
|
|
let value: String
|
|
|
|
var body: some View {
|
|
HStack(alignment: .center) {
|
|
Image(systemName: iconName)
|
|
.frame(width: 30, alignment: .leading)
|
|
Text(value)
|
|
.font(.footnote)
|
|
}
|
|
.padding(.vertical, 2)
|
|
}
|
|
}
|
|
|
|
struct LabelIconView_Previews: PreviewProvider {
|
|
static var previews: some View {
|
|
LabelIcon(iconName: "camera", value: "Sony A7")
|
|
}
|
|
}
|