Skip to content

Instantly share code, notes, and snippets.

@jordansinger
Created June 13, 2021 18:16
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jordansinger/81d55db90e2711a6ab8f37f30a494e94 to your computer and use it in GitHub Desktop.
Save jordansinger/81d55db90e2711a6ab8f37f30a494e94 to your computer and use it in GitHub Desktop.
.listStyle(.sidebar)
import SwiftUI
struct ContentView: View {
var body: some View {
NavigationView {
List {
Label("Airplane Mode", systemImage: "airplane")
.accentColor(.orange)
Label("Wi-Fi", systemImage: "wifi")
Label("Cellular", systemImage: "antenna.radiowaves.left.and.right")
.accentColor(.green)
Label("Notifications", systemImage: "app.badge.fill")
.accentColor(.red)
Label("Sounds", systemImage: "speaker.wave.2.fill")
.accentColor(.pink)
Label("Focus", systemImage: "moon.fill")
.accentColor(.purple)
}
.navigationTitle("Settings")
.listStyle(.sidebar)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment