Skip to content

Commit 6469e59

Browse files
committed
Add example for label
1 parent 2957ac1 commit 6469e59

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎Sources/OpenSwiftUI/View/Control/Button/Button.swift‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,4 +112,5 @@ extension Button where ButtonLabel == Label<Text, Image> {
112112
}
113113

114114
#Preview("Creating a button: text", body: {Button("Example Text Button"){}.body})
115-
#Preview("Creating a button: icon", body: {Button(Image("add")){}.body})
115+
#Preview("Creating a button: icon", body: {Button(Image("add")){}.body})
116+
#Preview("Creating a button: Label<Text,Image>", body: { Button("Text", systemImage: "add"){}.body })

0 commit comments

Comments
 (0)