Latest 1.1
Homepage https://github.com/lukastruemper/StroachTabBar_iOS
License MIT
Platforms ios 10.3
Authors

StroachTabBar for iOS

Version
License

The StroachTabBar is a modern TabBar with a unique animation written in Swift. It is heavily inspired by BATabBarController but its implementation is more user-friendly. Because the StroachTabBarController is a subclass of UITabBarController it can be used without major code changes.

Installation

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

use_frameworks!
pod 'StroachTabBar_iOS', '~> 1.1'

Run

pod install

and import it in your source code.

import StroachTabBar_iOS

Usage

This is an instruction of how to use StroachTabBar in the Storyboard.

  1. Add a native UITabBarController to the storyboard as the initial view controller and establish relationships with its view controllers.

  2. Change the class of the UITabBarController to StroachTabBarController.

    Add

  3. In the App Delegate cast the window.rootViewController to an instance of StroachTabBarController and add a StroachTabBarItem for every connected view controller.

    if let tabBarController = window?.rootViewController as? StroachTabBarController {
    let itemA = StroachTabBarItem(image: UIImage(named: "imageA")!);
    let itemB = StroachTabBarItem(image: UIImage(named: "imageB")!);
    tabBarController.stroachTabBar.items = [itemA, itemB];
    }
  4. Customize the look and feel of the StroachTabBar.

    tabBarController.stroachTabBar.backgroundColor = UIColor.black;
    tabBarController.stroachTabBar.selectedColor = UIColor.orange;
    tabBarController.stroachTabBar.unselectedColor = UIColor.darkGray;
    
    tabBarController.stroachTabBar.borderColor = UIColor.darkGray.cgColor;
    tabBarController.stroachTabBar.borderWidth = 0.5;

Contact

If you have any questions feel free to send an email to [email protected]

License

MIT License

Copyright (c) 2017 Lukas Trümper

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Latest podspec

{
    "name": "StroachTabBar_iOS",
    "version": "1.1",
    "homepage": "https://github.com/lukastruemper/StroachTabBar_iOS",
    "summary": "A modern TabBar written in Swift.",
    "authors": {
        "Lukas Tru00fcmper": "[email protected]"
    },
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "platforms": {
        "ios": "10.3"
    },
    "source": {
        "git": "https://github.com/lukastruemper/StroachTabBar_iOS.git",
        "tag": "v1.1"
    },
    "source_files": "StroachTabBar_iOS/*.swift",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This