-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathLabelStyle.swift
More file actions
32 lines (29 loc) · 754 Bytes
/
Copy pathLabelStyle.swift
File metadata and controls
32 lines (29 loc) · 754 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//
// LabelStyle.swift
// VideoNavigation-Example
//
// Created by shayanbo on 2023/7/21.
//
import SwiftUI
struct ActionStyle : LabelStyle {
func makeBody(configuration: LabelStyleConfiguration) -> some View {
HStack {
configuration.icon
configuration.title
.font(.system(size: 13))
}
}
}
struct CommentStyle : LabelStyle {
func makeBody(configuration: LabelStyleConfiguration) -> some View {
VStack {
configuration.icon
.foregroundColor(.gray.opacity(0.7))
Spacer()
.frame(height:5)
configuration.title
.font(.system(size: 12))
.foregroundColor(.gray)
}
}
}