ESTabBarController Documentation

repository·master·Indexed 26 days ago

https://github.com/eggswift/estabbarcontroller

A highly customizable UITabBarController subclass for iOS that enables custom animations, larger item sizes, and unique notification styles. It supports hybrid items, Lottie animations, and is compatible with Swift 5, iOS 8.0+, and Xcode 8 or later.

Tokens
601
Snippets
1
Records
3
Agent score
40%

What's inside ESTabBarController

  1. Overview of ESTabBarController features

    master

    ESTabBarController is a highly customizable UITabBarController subclass designed to overcome the limitations of standard UITabBarItem styling.

    Key capabilities include:

    • System Parity: Supports default system-like styles and handles the "More" item automatically when items exceed the display limit.
    • Hybrid Items: Allows mixing standard UITabBarItem and ESTabBarItem within the same tab bar.
    • UIKit Compatibility: Supports most UITabBarController, UITabBar, and UITabBarItem API properties for seamless migration.
    • Flexible Hierarchy: Compatible with both UITabBarController -> UINavigationController and UINavigationController -> UITabBarController architectures.
    • Advanced Customization:
      • Custom selection colors, animations, and item background colors.
      • Custom button sizes (supports HitTest for buttons extending beyond the TabBar area).
      • Custom click event callbacks via blocks.
      • Custom notification/badge styles and animations.
      • Lottie animation support via custom ContentView.
  2. Install ESTabBarController

    master

    You can install ESTabBarController using several dependency managers:

    Swift Package Manager

    Add the following to your Package.swift dependencies:

    CocoaPods

    Add the pod to your Podfile:

    Carthage

    Add the following to your Cartfile:

    Manual Installation

    Clone the repository and open the project manually.

    ### Swift Package Manager
    ```swift
    dependencies: [
        .package(name: "ESTabBarController", url: "https://github.com/eggswift/ESTabBarController.git", from: "2.9.0-spm")
    ]

    CocoaPods

    pod "ESTabBarController-swift"

    Carthage

    github "eggswift/ESTabBarController"

    Manually

    git clone https://github.com/eggswift/ESTabBarController.git
    open ESTabBarController