14 lines
294 B
Swift
14 lines
294 B
Swift
import SwiftUI
|
|
|
|
struct SettingsListView: View {
|
|
|
|
@Binding
|
|
var selectedSection: SettingsSection
|
|
|
|
var body: some View {
|
|
List(SettingsSection.allCases, selection: $selectedSection) { item in
|
|
Label(item.rawValue, systemSymbol: item.icon).tag(item)
|
|
}
|
|
}
|
|
}
|