Giter Club home page Giter Club logo

tiltedtabview's Introduction

Tilted Tab View

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

Installation

Carthage

This library is available via Carthage. To install, add the following to your Cartfile:

github IMcD23/TiltedTabView

Submodule

You can also add this project as a git submodule.

git submodule add https://github.com/IMcD23/TiltedTabView path/to/TiltedTabView

Run the command above, then drag the TiltedTabView.xcodeproj 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

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.

Example

Take a look at the Sample App for an example of the implementation.

tiltedtabview's People

Contributors

ian-mcdowell avatar harshilshah avatar

Watchers

Carabineiro avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.