Skip to content

Instantly share code, notes, and snippets.

@ryangittings
Last active October 29, 2019 17:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryangittings/23936424d936ead2cb768a9b55c5228d to your computer and use it in GitHub Desktop.
Save ryangittings/23936424d936ead2cb768a9b55c5228d to your computer and use it in GitHub Desktop.
struct DiscoverView : View {
var body: some View {
NavigationView {
List {
ScrollView(.horizontal) {
HStack(spacing: 8) {
ForEach(1...10, id: \.self) { index in
NavigationLink(destination: ContentView()) {
Image(systemName: "tv.fill")
.resizable()
.frame(width: 160, height: 240)
.contextMenu {
Button(action: {}) {
Text("Test")
}
}
}
}
}
}
.listRowInsets(EdgeInsets())
}
.listStyle(GroupedListStyle())
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment