Skip to content

Commit 0c7d511

Browse files
committed
Add demo view tweaks
1 parent 03c34e2 commit 0c7d511

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Demo/Sources/SwiftUI/HTMLTextDemoViewController.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ extension HTMLTextDemoViewController: TweakableDemo {
3939
enum Tweaks: String, CaseIterable, TweakingOption {
4040
case `default`
4141
case linebreak
42+
case list
43+
case paragraph
4244
case priceHighlight
4345
case strikethrough
4446
case mix
@@ -67,6 +69,10 @@ extension HTMLTextDemoViewController: TweakableDemo {
6769
htmlView = HTMLText("This is <b>HTML</b>")
6870
case .linebreak:
6971
htmlView = HTMLText("This is <b>HTML</b><br>over two lines")
72+
case .list:
73+
htmlView = HTMLText("This is a list:<ul><li>Item one</li><li>Item two</li><li>Item three</li></ul>")
74+
case .paragraph:
75+
htmlView = HTMLText("<p>This is a paragraph.</p><p>And this is another one.</p>")
7076
case .priceHighlight:
7177
htmlView = HTMLText(
7278
"Shipping costs <span style=\"color:tjt-price-highlight\">60 NOK</span>",

0 commit comments

Comments
 (0)