Skip to content

Commit 1b0930d

Browse files
committed
Update example project for consistency
1 parent 40b7c24 commit 1b0930d

2 files changed

Lines changed: 22 additions & 7 deletions

File tree

Example/Example/SwiftUIExampleView.swift

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,27 @@ struct SwiftUIExampleView: View {
1414

1515
let options = SupportOptions(
1616
categories: [
17-
.init(
18-
tags: ["boba", "fastFood"],
19-
displayName: "Food that tastes great",
20-
displayColor: UIColor.orange
21-
)
22-
]
17+
.init(tag: "boba", displayName: "Boba is awesome!")
18+
],
19+
navigationBar: .init(
20+
title: "Support",
21+
titleColor: UIColor.white,
22+
dismissButtonTitle: "Done",
23+
buttonTintColor: UIColor.white,
24+
backgroundColor: UIColor(red: 6 / 255, green: 151 / 255, blue: 0 / 255, alpha: 1)
25+
),
26+
progressBar: .init(
27+
foregroundColor: UIColor.green,
28+
backgroundColor: UIColor.systemBackground
29+
),
30+
listStyle: .insetGroupedListStyle,
31+
navigationViewStyle: .defaultNavigationViewStyle,
32+
other: .init(
33+
activityIndicatorStyle: UIActivityIndicatorView.Style.large,
34+
welcomeView: AnyView(WelcomeView()),
35+
footer: AnyView(Footer()),
36+
error404: URL(string: "https://aheze.github.io/SupportDocs/404")!
37+
)
2338
)
2439

2540
@State var supportDocsPresented = false

Example/Example/UIKitExampleController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class UIKitExampleController: UIViewController {
2727
// foregroundColor: UIColor.green,
2828
// backgroundColor: UIColor.systemBackground
2929
// ),
30-
// listStyle: .defaultListStyle,
30+
// listStyle: .insetGroupedListStyle,
3131
// navigationViewStyle: .defaultNavigationViewStyle,
3232
// other: .init(
3333
// activityIndicatorStyle: UIActivityIndicatorView.Style.large,

0 commit comments

Comments
 (0)