VTabView is meant to be used with .tabViewStyle(PageTabViewStyle()) but you can also use DefaultTabViewStyle.
Only remember that tab items will not have the orientation you would probably like to obtain.
A workaround for this would be in tabItem to not use Text but only an Image correctly transformed.
Installation
In Xcode, open your project and navigate to File → Swift Packages → Add Package Dependency…
Paste the repository URL (https://github.com/lorenzofiamingo/swiftui-vertical-tab-view) and click Next.
SwiftUI VerticalTabView 🔝
VTabView
is a native way to display paged vertical content in SwiftUI.To work it makes use of the new iOS 14
TabView
PageTabViewStyle
.Usage
Use like any other TabView:
You can also move index to the right
or remove it
Limitation
TabView
bounces in all directions by default.VTabView
is meant to be used with.tabViewStyle(PageTabViewStyle())
but you can also useDefaultTabViewStyle
. Only remember that tab items will not have the orientation you would probably like to obtain. A workaround for this would be in tabItem to not useText
but only anImage
correctly transformed.Installation
https://github.com/lorenzofiamingo/swiftui-vertical-tab-view
) and click Next.Other projects
SwiftUI AsyncButton 🖲️
SwiftUI MapItemPicker 🗺️
SwiftUI PhotosPicker 🌇
SwiftUI CachedAsyncImage 🗃️
SwiftUI SharedObject 🍱