vibetunnel/VibeTunnel/Presentation/Views/Settings/SettingsTab.swift
Peter Steinberger fd9eb47b85 add docs
2025-06-17 01:38:38 +02:00

37 lines
922 B
Swift

import Foundation
/// Represents the available tabs in the Settings window.
///
/// Each tab corresponds to a different configuration area of VibeTunnel,
/// with associated display names and SF Symbol icons for the tab bar.
enum SettingsTab: String, CaseIterable {
case general
case dashboard
case advanced
case debug
case about
var displayName: String {
switch self {
case .general: "General"
case .dashboard: "Dashboard"
case .advanced: "Advanced"
case .debug: "Debug"
case .about: "About"
}
}
var icon: String {
switch self {
case .general: "gear"
case .dashboard: "server.rack"
case .advanced: "gearshape.2"
case .debug: "hammer"
case .about: "info.circle"
}
}
}
extension Notification.Name {
static let openSettingsTab = Notification.Name("openSettingsTab")
}