aboutsummaryrefslogtreecommitdiff
path: root/iosApp/iosApp/Shared/SmallLabelStyle.swift
diff options
context:
space:
mode:
Diffstat (limited to 'iosApp/iosApp/Shared/SmallLabelStyle.swift')
-rw-r--r--iosApp/iosApp/Shared/SmallLabelStyle.swift23
1 files changed, 23 insertions, 0 deletions
diff --git a/iosApp/iosApp/Shared/SmallLabelStyle.swift b/iosApp/iosApp/Shared/SmallLabelStyle.swift
new file mode 100644
index 0000000..27914ff
--- /dev/null
+++ b/iosApp/iosApp/Shared/SmallLabelStyle.swift
@@ -0,0 +1,23 @@
+//
+// SmallIconLabelStyle.swift
+// iosApp
+//
+// Created by Iván on 29/01/22.
+// Copyright © 2022 orgName. All rights reserved.
+//
+
+import SwiftUI
+
+struct SmallLabelStyle: LabelStyle {
+ func makeBody(configuration: Configuration) -> some View {
+ HStack {
+ configuration.icon
+ .foregroundColor(.secondary)
+ .imageScale(.small)
+
+ configuration.title
+ .font(.subheadline)
+ .foregroundColor(.secondary)
+ }
+ }
+}