GithubHelp home page GithubHelp logo

tabby's Introduction

Tabby

⚠️ DEPRECATED, NO LONGER MAINTAINED

// TODO: Add the image here.




Description

Tabby is the ultimate tab bar, a full substitution for those UITabBarControllers, UITabBars and UITabBarItems that are not customizable at all. Tabby has animations, behaviors and it has the easiness you would expect from any of our libraries.

sample

Usage

Tabby begins with a controller, the called TabbyController. That one has an initializer taking TabbyBarItems. Each item has a controller, an image and an animation that defaults to a constant.

Once you have created the array of items, you can initialize the TabbyController like so:

let items = [
  TabbyBarItem(controller: firstController, image: UIImage(named: "first")),
  TabbyBarItem(controller: secondController, image: UIImage(named: "second"))
]
let controller = TabbyController(items: items)

Customization

As stated before, there are lots of customization points in Tabby, you can find the constants file with fonts, colors and animations.

A part from the typical constants, you'll be able to change the translucency, the indicator or the separator between the tab and the controller, with the possibility to add a shadow if you want.

controller.translucent = true
controller.showSeparator = false
controller.showIndicator = false
controller.barVisible = false
Behaviors

Tabby is built upon behaviors. As soon as we add more customization points within the source code, constants will emerge that will let you control more parts of the insights of Tabby. As for now, the first behavior dictates weather the title should be displayed, displayed only in the selected one, or not displayed at all.

To change that, you just set:

Tabby.Constant.Behavior.labelVisibility = .ActiveVisible

Animations

There are lots of default animations that you can use. We'll be adding more and more of those.

The default animations are:

Pop, Flip, Morph, Shake, Swing, PushUp, PushDown, None

Delegates

As for now, there is one delegate method that informs you which button was just pressed. This will let you rebuild the tab bar, reload it, add different items, etc.

func tabbyButtonDidPress(index: Int)

Be sure to check our demo if you have any further questions! :)

Installation

Tabby is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'Tabby'

Tabby is also available through Carthage. To install just write into your Cartfile:

github "hyperoslo/Tabby"

Author

Made by Hyper Oslo. Contact us at [email protected].

Contributing

We would love you to contribute to Tabby, check the CONTRIBUTING file for more info.

License

Tabby is available under the MIT license. See the LICENSE file for more info.

tabby's People

Contributors

3lvis avatar koust avatar onmyway133 avatar ramongilabert avatar senseiphonex avatar vadymmarkov avatar zenangst avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tabby's Issues

Ability to refresh color settings

It would be nice and nifty to be able to invoke a reconfigure method to refresh the colors that are used in Tabby. Lets say that you application gets information from a backend about which colors to use in the Tabby, then if the color changes on the backend, you could apply this colors to the TabbyController without having to reinitialize a new TabbyController or recreate the items that are in the tab bar.

Unable to install using pod

Hello @zenangst ,

I am unable to install this library while using Pod.
It is giving the error [!] No podspec found for Tabby in ../../ Kindly find the attached screenshot.

use_frameworks!

platform :ios, '9.0'

target 'Tabbar Demo' do
  pod 'Tabby'
end

Error tabby

Can you please help me?

Feature intercepting tab bar selections

I think it could be useful to be able to intercept a navigation before it happens. Play with the idea that you have an item in your tab bar that actually leaves the application, then you don't want that to switch out the controller and to show and empty one when you get back into your application.

We can use Facebook and Facebook Messenger as an example, if you tap that item, you don't navigate inside Facebook, you are transported to Messenger. When you come back to Facebook, it is exactly like you left it.

I don't think this would be to hard to achieve if we change the delegate method on TabbyController to return a boolean value. If it is set to true, it would change, if false, then it is up to the developer to decide what is suppose to happen when a user taps the item.

So instead of this;
https://github.com/hyperoslo/Tabby/blob/master/Sources/TabbyController.swift#L8

func tabbyDidPress(item: TabbyBarItem)

You would have something like this;

func tabbyDidPress(item: TabbyBarItem) -> Bool

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.