Improve settings, sidebars
This commit is contained in:
34
CHDataManagement/Views/Settings/SettingsSection.swift
Normal file
34
CHDataManagement/Views/Settings/SettingsSection.swift
Normal file
@ -0,0 +1,34 @@
|
||||
import SFSafeSymbols
|
||||
|
||||
enum SettingsSection: String {
|
||||
|
||||
case generation = "Generation"
|
||||
|
||||
case folders = "Folders"
|
||||
|
||||
case navigationBar = "Navigation Bar"
|
||||
|
||||
case postFeed = "Post Feed"
|
||||
|
||||
}
|
||||
|
||||
extension SettingsSection {
|
||||
|
||||
var icon: SFSymbol {
|
||||
switch self {
|
||||
case .generation: return .arrowTriangle2Circlepath
|
||||
case .folders: return .folder
|
||||
case .navigationBar: return .menubarRectangle
|
||||
case .postFeed: return .rectangleGrid1x2
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
extension SettingsSection: CaseIterable {
|
||||
|
||||
}
|
||||
|
||||
extension SettingsSection: Identifiable {
|
||||
|
||||
var id: String { rawValue }
|
||||
}
|
Reference in New Issue
Block a user