Skip to content

Instantly share code, notes, and snippets.

@duanebester
Created January 28, 2020 01:28
Show Gist options
  • Save duanebester/42e67884c719f31e2217d2cec3f2b3be to your computer and use it in GitHub Desktop.
Save duanebester/42e67884c719f31e2217d2cec3f2b3be to your computer and use it in GitHub Desktop.
ContentView 01
import SwiftUI
struct ContentView: View {
var body: some View {
NavigationView {
ZStack {
SongListView()
}.navigationBarTitle("Music")
}
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
Group {
ContentView().environment(\.colorScheme, .light)
ContentView().environment(\.colorScheme, .dark)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment