Skip to content

iOS control to replicate the tab switcher in Safari for iOS.

License

Notifications You must be signed in to change notification settings

ian-mcdowell/TiltedTabView

Repository files navigation

Tilted Tab View

TiltedTabViewTabViewInputAssistantGit


This library aims to replicate the tab switcher in Safari on iOS. It handles both compact width (tilted) and regular width (grid) layouts.

Build Status Version Package Managers Contact

Requirements

  • Xcode 9 or later
  • iOS 10.0 or later

Usage

The main class in this library is the TiltedTabViewController. It is a subclass of UICollectionViewController, that contains a custom collection view and layout.

To get started, create a view controller that subclasses TiltedTabViewController

The TiltedTabViewController has data source and delegate properties, similar to those of a UICollectionView.

Set an object that conforms to the TiltedTabViewControllerDataSource and TiltedTabViewControllerDelegate protocols as the dataSource and delegate properties, respectively.

Provide implementations for all required methods of each protocol, and you're off to the races.

Installation

Carthage

To install TiltedTabView using Carthage, add the following line to your Cartfile:

github "IMcD23/TiltedTabView" "master"

Submodule

To install TiltedTabView as a submodule into your git repository, run the following command:

git submodule add -b master https://github.com/IMcD23/TiltedTabView.git Path/To/TiltedTabView
git submodule update --init --recursive

Then, add the .xcodeproj in the root of the repository into your Xcode project, and add it as a build dependency.

ibuild

A Swift static library of this project is also available for the ibuild build system. Learn more about ibuild here

Author

Created by Ian McDowell

License

All code in this project is available under the license specified in the LICENSE file. However, since this project also bundles code from other projects, you are subject to those projects' licenses as well.

About

iOS control to replicate the tab switcher in Safari for iOS.

Resources

License

Stars

Watchers

Forks

Packages

No packages published