A TabBarController with a unique animation for selection

Overview

BATabBarController

CI Status Version License Platform Carthage compatible

Overview

Recent Versions

Language Version
Swift 5 2.0.1
Swift 4 1.0.1
Obj C 0.1.6

The standard TabBarController is very limited in terms of animations when you make a selection. This cocoapod allows you to use one with a sleek animation with customizable properties!

For a how-to guide on use go to: https://antiguab.github.io/batabbarcontroller/

Comments
  • Tab Bar animation not working after in development build

    Tab Bar animation not working after in development build

    The animation of tab bar is working with running the app via xcode. But, It's not working installing app from App store or Directly installing development build.

    Anyone did faced this issue? How can I solve it?

    opened by rajamohan0s 6
  • Push to tabbar controller

    Push to tabbar controller

    Simulator Screen Shot - iPhone XR - 2019-11-13 at 12 34 24

    Hello Bryan antiguab,

    whenever I load tabbar without push its work fine but whenever I Push to this tabbar controller this issue happned I checked and apply all properties but not working

    can you please check?

    Thank you

    opened by HarshPandya136 5
  • Update badge value

    Update badge value

    Hi,

    i can't update badge value. I missed something ? This is how I try to update the badge:

    [[[tabBarController.tabBarItems objectAtIndex:2]badge]setBadgeValue:@8];

    Thank you for your help !

    opened by palmitoto 5
  • xcode8 or ios10 bug??

    xcode8 or ios10 bug??

    Thanks to open source, I use it in the project to achieve the very good-looking animation, but recently the package out of the question, when the xcode 8.2, when the scheme is set to release, all is lost, but set the debug mode, the performance is normal. You can repeat this disaster, I hope you can check it, I also check tomorrow screenshot

    opened by amjunliang 5
  • Tabbar icons pixelated

    Tabbar icons pixelated

    I'm using BATabBarController(Cocoa pod), everything works fine, but the tab icons are pixelated, tried variant size of icons still icons are pixelated especially in 5s,6,7&8, attached screenshots

    img_5193

    opened by Nextweb1 1
  • Xamarin.iOS BATabBarController

    Xamarin.iOS BATabBarController

    Hello !

    First of all, I know this is not an issue.

    It would be great to have this package on nugget in C# .

    Is there any intention to release a version for users of xamarin.ios??

    Thank you!

    opened by CarLoOSX 1
  • how to use hidesBottomBarWhenPushed

    how to use hidesBottomBarWhenPushed

    hidesBottomBarWhenPushed is a property of a UIViewController how to use with BATabBarController

    for example :

    
     override func viewDidLayoutSubviews() {
           
            
            if(self.firstTime){
                            
                var libraryTabBarItem : BATabBarItem!
                var createTabBarItem : BATabBarItem!
                var getInspiredTabBarItem : BATabBarItem!
                var activitiesTabBarItem : BATabBarItem!
                var myProfileTabBarItem : BATabBarItem!
                
                let storyboard = UIStoryboard(name: "Main", bundle: nil)
                // LIBRARY
                let LibraryNC = storyboard.instantiateViewController(withIdentifier: "libraryNavigationController") as! UINavigationController
                // CREATE
                let CreateNC = storyboard.instantiateViewController(withIdentifier: "createNavigationController") as! UINavigationController           
                // GET INSPIRED
                let GetInspiredVC = storyboard.instantiateViewController(withIdentifier: "GetInspiredViewController") as! GetInspiredViewController
                // ACTIVITIES
                let ActivitiesVC = storyboard.instantiateViewController(withIdentifier: "ActivitiesViewController") as! ActivitiesViewController
                // MY PROFILE
                let MyProfileVC = storyboard.instantiateViewController(withIdentifier: "MyProfileViewController") as! MyProfileViewController
                
                
                var attrs = [NSAttributedStringKey.font : UIFont.systemFont(ofSize: 11.0) , NSAttributedStringKey.foregroundColor : UIColor.white]
                
                
                let LibraryString = NSMutableAttributedString(string:"LIBRARY", attributes:attrs)
                let CreateString = NSMutableAttributedString(string:"CREATE", attributes:attrs)
                let GetInspiredString = NSMutableAttributedString(string:"GETINSPIRED", attributes:attrs)
                let ActivitiesString = NSMutableAttributedString(string:"ACTIVITIES", attributes:attrs)
                let MyProfileString = NSMutableAttributedString(string:"MYPROFILE", attributes:attrs)
                
                
                libraryTabBarItem = BATabBarItem(image: UIImage(named:"ic_photo_library_white_36pt"), selectedImage: UIImage(named:"ic_photo_library_white_36pt")?.maskWithColor(color: UIColor.red), title: LibraryString)
                createTabBarItem = BATabBarItem(image: UIImage(named:"ic_mode_edit_white_36pt"), selectedImage: UIImage(named:"ic_mode_edit_white_36pt")?.maskWithColor(color: UIColor.red), title: CreateString)
                getInspiredTabBarItem = BATabBarItem(image: UIImage(named:"ic_youtube_searched_for_white_36pt"), selectedImage: UIImage(named:"ic_youtube_searched_for_white_36pt")?.maskWithColor(color: UIColor.red), title: GetInspiredString)
                activitiesTabBarItem = BATabBarItem(image: UIImage(named:"ic_mail_white_36pt"), selectedImage: UIImage(named:"ic_mail_white_36pt")?.maskWithColor(color: UIColor.red), title: ActivitiesString)
                myProfileTabBarItem = BATabBarItem(image: UIImage(named:"ic_person_outline_white_36pt"), selectedImage: UIImage(named:"ic_person_outline_white_36pt")?.maskWithColor(color: UIColor.red), title: MyProfileString)
                
                baTabController = BATabBarController()
                baTabController.viewControllers = [LibraryNC,CreateNC,GetInspiredVC,ActivitiesVC,MyProfileVC]
                baTabController.tabBarItems = [libraryTabBarItem,createTabBarItem,getInspiredTabBarItem,activitiesTabBarItem,myProfileTabBarItem]
                
                
                self.baTabController.delegate = self;
               // self.baTabController.hidesBottomBarWhenPushed = true
                self.view.addSubview(self.baTabController.view)
                self.firstTime = false;
    }
    

    now if LibraryNC or CreateNC pushes a viewController i want the tabs to be hidden

    thanks in advance

    opened by tarek903 1
  • How to select tab item programmatically ?

    How to select tab item programmatically ?

    Thanks for your great open source.

    I tried to use this method to select other tab programmatically.

    [self.vc.tabBar selectedTabItem:1 animated:YES];

    It works. But the selected image of previous tab still remains.

    opened by riseworld27 1
  • Fix broken headings in Markdown files

    Fix broken headings in Markdown files

    GitHub changed the way Markdown headings are parsed, so this change fixes it.

    See bryant1410/readmesfix for more information.

    Tackles bryant1410/readmesfix#1

    opened by bryant1410 1
  • Vertical tabbar

    Vertical tabbar

    Not sure if we can still call it a TabBar, but it would be awesome to have this feature. It could be useful for universal application:

    • Classic TabBar at the bottom on iPhone
    • Vertical TabBar (like a permanent menu) on iPad

    The most of animated tabbar libraries are based on UITabBar which make that feature impossible, but for BATabBarController it looks possible since it's based on UIView... :)

    Hacktoberfest 
    opened by tbaranes 1
  • Please help. How can I switch between vc

    Please help. How can I switch between vc

    import UIKit import BATabBarController

    class MainViewController: UIViewController, BATabBarControllerDelegate {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        let vc1 = UIViewController()
        let vc2 = UIViewController()
        let vc3 = UIViewController()
        
        let tabBarItem  = BATabBarItem(image: UIImage(named: "intro1")!, selectedImage: UIImage(named: "intro1")!)
        let tabBarItem2 = BATabBarItem(image: UIImage(named: "intro4")!, selectedImage: UIImage(named: "intro4")!)
        let tabBarItem3 = BATabBarItem(image: UIImage(named: "intro5")!, selectedImage: UIImage(named: "intro5")!)
        
        
        let baTabBarController = BATabBarController()
        baTabBarController.viewControllers = [vc1, vc2, vc3]
        baTabBarController.tabBarItems = [tabBarItem, tabBarItem2, tabBarItem3]
        baTabBarController.delegate = self
        self.view.addSubview(baTabBarController.view)
        print("fvsfd")
        
        
        
    }
    
    func tabBarController(_ tabBarController: BATabBarController, didSelect: UIViewController) {
        
       
        
    }
    

    }

    opened by Kirill12a 0
  • Pixelated icon

    Pixelated icon

    Hello, I have a problem with the TabBar, The display of icons is pixelated, I use the size of 25 * 25 for the normal display, 50 * 50 for @ 2x and 75 * 75 for @ 3x, before that I used the size 64 * 64, 128 * 128 and 256 * 256 but the result was not good. Do you have any suggestions for me?

    Thanks for your help :) @antiguab

    opened by hadouken111 0
  • tabBarAnimatonDuration inaccessible due to internal protection level

    tabBarAnimatonDuration inaccessible due to internal protection level

    If Anyone is having this problem, open up BATabBarControllerDelegate and on line 77 just add the word "public" in front of var tabBarAnimationDuration

     public var tabBarAnimationDuration: CGFloat = 0.0 {
            didSet {
                tabBar?.animationDuration = tabBarAnimationDuration
            }
        }
    
    opened by CharlieHoangNguyen 0
A flexible TabBarController with search tab like SNKRS.

PolioPager PolioPager is the easiest way to use PagerTabStrip including search tab in iOS. Written in pure swift. (日本語はこちら) Comparison SNKRS ↓↓↓↓ Poil

Yuiga Wada 176 Jan 7, 2023
TabDrawer is a customizable TabBar UI element that allows you to run a block of code upon TabBarItem selection

TabDrawer TabDrawer is a customizable TabBar UI element that allows you to run a block of code upon TabBarItem selection, or display a customizable dr

Winslow DiBona 503 Oct 5, 2022
RAMAnimatedTabBarController is a Swift UI module library for adding animation to iOS tabbar items and icons. iOS library made by @Ramotion

ANIMATED TAB BAR Swift UI module library for adding animation to iOS tabbar items and icons.

Ramotion 11k Jan 8, 2023
RCalendarPicker A date picker control, Calendar calendar control, select control, calendar, date selection, the clock selection control.

RCalendarPicker RCalendarPicker Calendar calendar control, select control, calendar, date selection, the clock selection control. 日历控件 ,日历选择控件,日历,日期选择

杜耀辉 131 Jul 18, 2022
Simple single-selection or multiple-selection checklist, based on UITableView

SelectionList Simple single-selection or multiple-selection checklist, based on UITableView. Usage let selectionList = SelectionList() selectionList.i

Yonat Sharon 111 Oct 6, 2022
ESTabBarController is a highly customizable TabBarController component, which is inherited from UITabBarController.

ESTabBarController is a highly customizable TabBarController component, which is inherited from UITabBarController. Why? In real-world developmen

Vincent Li 4.9k Jan 5, 2023
A flexible TabBarController with search tab like SNKRS.

PolioPager PolioPager is the easiest way to use PagerTabStrip including search tab in iOS. Written in pure swift. (日本語はこちら) Comparison SNKRS ↓↓↓↓ Poil

Yuiga Wada 176 Jan 7, 2023
BlockiesSwift - Unique blocky identicons generator for Swift

⚗️ BlockiesSwift This library is a Swift implementation of the Ethereum fork of Blockies which is intended to be used in iOS, watchOS, tvOS and macOS

null 56 Jan 6, 2023
iPhone and iPod Touch version of Skeleton Key: is an addictive and unique puzzle game in which you shift keys around the board unlocking treasure chests. Made with cocos2d-iphone.

Skeleton Key (iOS) Skeleton Key is an addictive and unique puzzle game in which you shift keys around the board unlocking treasure chests. It's availa

null 117 Jun 6, 2022
It is a highly configurable iOS library which allows easy styling with built in styles as well as extra header and footer views so that you can make extremely unique alerts and action sheets.

 CFAlertViewController CFAlertViewController is a library that helps you display and customise Alerts, Action Sheets, and Notifications on iPad and i

Crowdfire Inc. 1.1k Dec 18, 2022
Unique blocky identicons generator for Swift

⚗️ BlockiesSwift This library is a Swift implementation of the Ethereum fork of Blockies which is intended to be used in iOS, watchOS, tvOS and macOS

null 57 Dec 1, 2022
A very useful and unique iOS library to open image picker in just few lines of code.

ImagePickerEasy A very simple solution to implement UIImagePickerController() in your application. Requirements Swift 4.2 and above Installation Image

wajeehulhassan 6 May 13, 2022
A Swift collection of unique, ordered objects

Introduction OrderedSet is essentially the Swift equivalent of Foundation's NSOrderedSet/NSMutableOrderedSet. It was created so Swift would have a uni

Weebly 248 Sep 14, 2022
Someone - Someone utilizes GPT-3 to deliver a unique chat bot app experience

Someone - An IOS App Someone utilizes GPT-3 to deliver a unique chat bot app exp

Edward 1 Sep 22, 2022
Store values using unique, randomly generated identifiers

Storage Store values using unique, randomly generated identifiers. This packages consists of three types: A Storage class, a UniqueIdentifiable protoc

Jordan Baird 1 Feb 23, 2022
Swift Xid - Xid uses MongoDB Object ID algorighm1 to generate globally unique ids with base32 serialzation to produce shorter strings

Swift Xid - Xid uses MongoDB Object ID algorighm1 to generate globally unique ids with base32 serialzation to produce shorter strings

Uditha Atukorala 0 Jun 13, 2022
Simple selection dialog

SelectionDialog Simple selection dialog inspired from ios-custom-alertview Preview Requirements iOS 8.0+ Swift 3 Xcode 8.0 Installation CocoaPods use_

Lee Sun-Hyoup 117 Aug 5, 2022
This is a sample app to create a photo selection classifier using CreateML on an iOS Device.

PhotoSelectionClassifier This is a sample app to create a photo selection classifier using CreateML on an iOS Device. Demo In the demo video below, we

null 15 Nov 18, 2022
Custom Time Picker ViewController with Selection of start and end times in Swift 🔶

LFTimePicker Custom Time Picker ViewController with Selection of start and end times in Swift ?? . Based on Adey Salyard's design @ Dribbble One to tw

Awesome Labs 65 Nov 11, 2022
Simple selection dialog

SelectionDialog Simple selection dialog inspired from ios-custom-alertview Preview Requirements iOS 8.0+ Swift 3 Xcode 8.0 Installation CocoaPods use_

Lee Sun-Hyoup 117 Aug 5, 2022