Created
March 20, 2021 04:58
-
-
Save olopsman/2d698416fbc6760defb2b66ce87d4295 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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