Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save analogpotato/be601efc3d2a25fd3359dd585b6ea335 to your computer and use it in GitHub Desktop.
Save analogpotato/be601efc3d2a25fd3359dd585b6ea335 to your computer and use it in GitHub Desktop.
Tab view...view
VStack {
TabView {
//Add Group {} here for vertical method. be sure to add .rotationEffect(Angle(degrees: -90)) at the end of the Group closure
ForEach(data) { item in
CustomCell(data: item)
}
}
.tabViewStyle(PageTabViewStyle(indexDisplayMode: .automatic))
// Add .rotationEffect(Angle(degrees: 90)) as well for vertical implementation
//this was my implementation for a horizontal stack of data, commented sections could be removed to rotate to a vertical implementation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment