Git Product home page Git Product logo

limbertabbar.ios's Introduction

This repo won't be maintained anymore.

Limber tab bar

Another iOS tabbar with smooth animation and more limber view. You can implement easily into you current project with just two step.

Inspired by this concept from Lukas Stranak

Installation

This is the very first released of this library and it is under test. It soon be available on cocoapod repo. Currenly you can install the first version by adding the line below to your podfile.

pod 'LimberTabbar', :git=> 'https://github.com/afshin-hoseini/LimberTabbar.iOS.git', :tag=> '0.2.0'

and then do a pod install

Usage

If you want to use the LimberTabbar alone, just click on your tabbar view in interface builder and from the identity inspector tab, select the AHLimberTabbar as class.

If you also want to use the limber tabbar on your UITabbarController, in addition to last step, you ought to change your UITabbarController's class to AHLimberTabbarController from identity inspector.

Customization

Currently there isn't many thing to do but you can:

  1. Select bar tint color by change this property on your tabbar view.
  2. Change Icons' tint color via selecting appropriate color on image tint property.

You can also specify background and icon tint color for each tab bar item, through changing the tabbarItem's class to AHLimberTabbarItem on identity inspector tab, in interface builder.

The AHLimberTabbar adjusts the the pit's depth according to the safe area insets. If you wish to ignore the safe area insets, make the observeSafeAreaInsets option off in interface builder.

NOTICE

  1. The AHLimberTabbarController just overrides the definition of tabBar(_: didSelect:) function in order to change the default behaviour of UITabbarController. Therefore, it may corrupt you custom code and disable specific delegation.

  2. Current version is just a concept an is not fully tested. Please test it completely along side your development and make sure that meets your needs.

To do

  1. Better AHLimberTabbarController.
  2. Multiple animations for AHLimberTabbar.
  3. Custom transition animations for AHLimberTabbarController.
  4. Showing badges.

limbertabbar.ios's People

Contributors

afshin-hoseini 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

Watchers

 avatar  avatar

limbertabbar.ios's Issues

Tabbar position not work in iOS 14

Hi.
First of all, thanks for made LimberTabbar.iOS.

in iOS 14, tabbar position not work.

code
self.tabBarController?.tabBar.frame.origin.y = UIScreen.main.bounds.size.height

iOS 13 and older, tabbar will move to y. But iOS 14 not work.

====
addition code
UIView.animate(withDuration: 0.3) {
self.tabBarController?.tabBar.frame.origin.y = UIScreen.main.bounds.size.height
}

iOS 13 and older, tabbar will move to y with animation.
iOS 14, tabbar pop to middle of screen and move to bottom with animation.

This occur with sample project too.

Background and tint color animation

  • Implement a custom/optional tabbar item with extends UITabbarItem containing the background and tint color, appropriate for the tab item.

  • BackgroundView and selectedItemView background color animation.

  • use default background and tint color of tab bar.

  • Tint color animation on tabs' image.

tab bar not showing

Hi,

when I go to the controller with the call of this function the tab bar not showing

self.window = UIWindow(frame: UIScreen.main.bounds)
let vc = Utilities.shared.getViewController(identifier: HomeVC.className, storyboardType: .common)
isComeVIP = true
let navigationController = UINavigationController.init(rootViewController: vc)
self.window?.rootViewController = navigationController

        self.window?.makeKeyAndVisible()

Bar item title

I have implemented this tabbar
Now i want to add title but there is no option to add title.
how to add title ?

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.