Discussion 議論
Use this modifier to set a specific style for all labels within a view:
VStack {
Label("Fire", systemImage: "flame.fill")
Label("Lightning", systemImage: "bolt.fill")
}
.labelStyle(MyCustomLabelStyle())
Availability 有効性
Technology
func labelStyle<S>(_ style: S) -> some View
where S : LabelStyle
Use this modifier to set a specific style for all labels within a view:
VStack {
Label("Fire", systemImage: "flame.fill")
Label("Lightning", systemImage: "bolt.fill")
}
.labelStyle(MyCustomLabelStyle())