Skip to content

Commit 99a4a7a

Browse files
committed
Add preview for InlineTip
1 parent f7e07c8 commit 99a4a7a

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

firebaseai/FirebaseAIExample/Shared/Views/InlineTip.swift

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,19 @@ public struct InlineTip: Tip {
3939
}
4040

4141
#Preview {
42-
//TipView(text: "Try asking the model to change the background color")
42+
TipView(InlineTip(text: "Try asking the model to change the background color"))
43+
TipView(
44+
InlineTip(
45+
text: "You shouldn't do that.",
46+
title: "Warning",
47+
icon: Image(systemName: "exclamationmark.circle")
48+
)
49+
)
50+
TipView(
51+
InlineTip(
52+
text: "Oops, try again!",
53+
title: "Error",
54+
icon: Image(systemName: "x.circle")
55+
)
56+
)
4357
}

0 commit comments

Comments
 (0)