Latest 0.2
Homepage https://github.com/fortmarek/HugeTabBarButton
License MIT
Platforms ios 9.0
Authors

CI Status
Version
License
Carthage Compatible

HugeTabBarButton lets you create huge images for your UITabBarItems.

HugeTabBarButton

Installation

CocoaPods

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

pod 'HugeTabBarButton'

Carthage

If you use Carthage, add this to your Cartfile:

github "fortmarek/HugeTabBarButton"

How it Works

It’s quite simple, really! To create a huge image, just create a UIViewController like this:

let hugeTabBarItem = UITabBarItem()
hugeTabBarItem.image = UIImage(named: "HugeImage")
hugeTabBarItem.imageInsets = UIEdgeInsets(top: -20, left: 0, bottom: 20, right: 0)
hugeTabBarItem.title = "Huge"
tabBarViewController.tabBarItem = hugeTabBarItem

And init your UITabBarController as HugeTabBarController:

let tabBarController = HugeTabBarController()

Basically what you need to do is change the imageInsets and HugeTabBarButton will then register the tap wherever your image is. Easy! 😎

Latest podspec

{
    "name": "HugeTabBarButton",
    "version": "0.2",
    "summary": "HugeTabBarButton for huge UITabBar button images",
    "description": "HugeTabBarButton lets you create a tab bar button with as huge of an image as you want",
    "homepage": "https://github.com/fortmarek/HugeTabBarButton",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Marek Fort": "[email protected]"
    },
    "source": {
        "git": "https://github.com/fortmarek/HugeTabBarButton.git",
        "tag": "0.2"
    },
    "source_files": "HugeTabBarButton/**/*",
    "exclude_files": "HugeTabBarButton/*.plist",
    "swift_version": "4.2",
    "platforms": {
        "ios": "9.0"
    }
}

Pin It on Pinterest

Share This