VerticalTabView is a native way to display paged vertical content in SwiftUI.

Overview

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:

import VTabView

VTabView {
    Text("The First Tab")
        .tabItem {
            Image(systemName: "square.fill")
        }
    Text("Another Tab")
        .tabItem {
            Image(systemName: "circle.fill")
        }
    Text("The Last Tab")
        .tabItem {
            Image(systemName: "triangle.fill")
        }
}
.tabViewStyle(PageTabViewStyle())

You can also move index to the right

VTabView(indexPosition: .trailing) {
    ...
}
.tabViewStyle(PageTabViewStyle())

or remove it

VTabView {
    ...
}
.tabViewStyle(PageTabViewStyle(indexDisplayMode: .never))

Limitation

TabView bounces in all directions by default.

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

  1. In Xcode, open your project and navigate to FileSwift PackagesAdd Package Dependency...
  2. Paste the repository URL (https://github.com/lorenzofiamingo/SwiftUI-VerticalTabView) and click Next.
  3. Click Finish.

Other projects

CachedAsyncImage 🗃️

SharedObject 🍱

You might also like...
WeatherDiscussions - Select NOAA regions and display weather discussions for that region

An example of the core concepts of iOS development This is a simple three screen

BitPrice - an iOS app that display and monitor the current Bitcoint (BTC) rate

BitPrice - an iOS app that display and monitor the current Bitcoint (BTC) rate

Demonstration of using UIWindowScene and SwiftUI to provide a native-looking Mac preferences window in Catalyst
Demonstration of using UIWindowScene and SwiftUI to provide a native-looking Mac preferences window in Catalyst

CatalystPrefsWindow Ever wondered how to create a more Mac-like preferences window for Catalyst? Perhaps Settings Bundles are too limiting for the kin

A native SoundCloud app for macOS, written in SwiftUI
A native SoundCloud app for macOS, written in SwiftUI

Nuage A native SoundCloud app for macOS, written in SwiftUI About Nuage is an independent and open-source project to build a native SoundCloud client

📱 Guideo - Native iOS App crafted with Swift and SwiftUI
📱 Guideo - Native iOS App crafted with Swift and SwiftUI

Guideo An awesome iOS Native App 📱 About Guideo App wire-framed and crafted from scratch by a team of 4. Our final project of the  Apple Foundation

A completely native Discord client for macOS built 100% in Swift and SwiftUI

Swiftcord A completely native Discord client for macOS built 100% in Swift and SwiftUI This project aims to create a fully functional native Discord c

Native iOS app built in SwiftUI, displays a collection of user's books.

Native iOS app built in SwiftUI, displays a collection of user's books.

A native, customizable SwiftUI refresh control
A native, customizable SwiftUI refresh control

Refresher A customizable, native Swift UI refresh control for iOS 14+ Why? the native SwiftUI refresh control only works on iOS 15+ the native UIKit r

Riddler is a riddle game built as a native iOS app in Swift using SwiftUI
Riddler is a riddle game built as a native iOS app in Swift using SwiftUI

Riddler is a riddle game built as a native iOS app in Swift using SwiftUI. It includes 50 challenging riddles with hints for when you get stuck. The game tracks your stats so you can compare your performance against your friends, and see who can answer all 50 riddles the quickest.

Releases(2.0.0)
Owner
Lorenzo Fiamingo
Lorenzo Fiamingo
content for Using Combine - notes on learning Combine with UIKit and SwiftUI

SwiftUI-Notes A collection of notes, project pieces, playgrounds and ideas on learning and using SwiftUI and Combine. Changes, corrections, and feedba

Joseph Heck 1.7k Dec 27, 2022
A weather app developed in React Native. It is the React Native version of SwiftWeather.

ReactNativeWeather A weather app developed in React Native. It is the React Native version of SwiftWeather How to run the app Install react-native If

Jake Lin 22 Jun 7, 2022
Weatherflow-local - Basic frame-out of a SwiftUI macOS app to receive & display WeatherFlow UDP broadcast messages

WeatherFlow Local A very basic/skeleton SwiftUI macOS app for receiving and disp

boB Rudis 4 Feb 6, 2022
Content Application for RSS

Tenere Content Application for RSS. Written by swift. If you want you can use the old version(News Application). However, the new version faster, easi

yavuz yildirim 20 Oct 11, 2022
Headline News Widget for Better Touch Tool. You can display the articles fetched by rss.

BTTPluginHeadLineNews This is a headline news widget plugin for BTT(Better Touch Tool) You can display the articles fetched by rss. (Pock version is h

null 4 Jul 23, 2022
iOS mobile app to find and display the nearest boba shop

iOSBoba - Boba App Description Basic mobile app where you can plug in a location (or let the app find your current location), and the app will tap int

Jacob Pernell 1 Oct 27, 2021
iOS App to display game lists and details with the ability to add games to your favorites list and see metacritic ratings.

Game Data System - GDS Author: Heitor Silveira ([email protected]) iOS App to view games from various platforms, their description, release

Heitor Ugarte Calvet da Silveira 0 Oct 6, 2021
iOS App by which the user can display a list of characters from the Harry Potter Movies.

iOS App by which the user can display a list of characters from the Harry Potter Movies. They can display a list of all characters, students, staff or view characters by house.

Matthew Hollyhead 0 Nov 7, 2021
Simple Weather app to display future weather of 3 cities

WeatherApp Simple Weather app to display future weather of 3 cities Test project for a small weather application Overview For the test project a small

null 0 Nov 28, 2021
NetFun-ios-app - iOS app using BFF service to display processed data.

NetFun-ios-app iOS app using BFF service to display processed data. The iOS demo developed in SwiftUI and it uses BFF service to show expected UI comp

Minhaz Panara 0 Jan 3, 2022