16 lines
365 B
Swift
16 lines
365 B
Swift
import SwiftUI
|
|
import SFSafeSymbols
|
|
|
|
struct SettingsSidebar: View {
|
|
|
|
@Binding var selectedSection: SettingsSection?
|
|
|
|
var body: some View {
|
|
List(SettingsSection.allCases, selection: $selectedSection) { item in
|
|
Label(item.rawValue, systemSymbol: item.icon)
|
|
.tag(item)
|
|
}
|
|
.navigationTitle("Settings")
|
|
}
|
|
}
|