Skip to content

Instantly share code, notes, and snippets.

@olopsman
Created March 20, 2021 04:58
Show Gist options
  • Save olopsman/2d698416fbc6760defb2b66ce87d4295 to your computer and use it in GitHub Desktop.
Save olopsman/2d698416fbc6760defb2b66ce87d4295 to your computer and use it in GitHub Desktop.
import SwiftUI
struct TestList: View {
var body: some View {
NavigationView{
List {
Text("hello world")
Text("hello world")
Text("hello world")
}
.listStyle(PlainListStyle())
.navigationBarTitle(Text("Test List"), displayMode:.inline)
.navigationBarItems(leading:
Image(systemName: "bell")
)
}
}
}
struct TestList_Previews: PreviewProvider {
static var previews: some View {
TestList()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment