forked from aheze/Setting
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSettingsView.swift
More file actions
41 lines (35 loc) · 1.2 KB
/
SettingsView.swift
File metadata and controls
41 lines (35 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//
// SettingsView.swift
// SettingExample
//
// Created by A. Zheng (github.com/aheze) on 2/22/23.
// Copyright © 2023 A. Zheng. All rights reserved.
//
import Setting
import SwiftUI
struct SettingsView: View {
var body: some View {
SettingStack {
SettingPage(title: "Settings") {
SettingGroup {
SettingPage(title: "General") {}
.previewIcon("gearshape.fill")
}
SettingGroup {
SettingPage(title: "Privacy") {}
.previewIcon("hand.raised.fill", color: .green)
SettingPage(title: "Notifications") {}
.previewIcon("bell.badge.fill", color: .red)
}
SettingGroup {
SettingPage(title: "Theme") {}
.previewIcon("paintbrush.fill", color: .purple)
SettingPage(title: "Widgets") {}
.previewIcon("square.grid.2x2.fill", color: .orange)
SettingPage(title: "About") {}
.previewIcon("person.fill", color: .teal)
}
}
}
}
}