Created
July 29, 2021 05:33
-
-
Save analogpotato/be601efc3d2a25fd3359dd585b6ea335 to your computer and use it in GitHub Desktop.
Tab view...view
This file contains hidden or 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
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