Latest 0.3
Homepage https://github.com/ragaie/ScrollTopTabBar
License MIT
Platforms ios 8.0
Frameworks UIKit, Foundation
Authors

ScrollTopTabBar

scroll tab bar for ios that you just need to add item then it will fit automatic. It give you two way to heightLight selected item.

Installing

Add blow for your pod file

   pod 'ScrollTopTabBarChtar' 
   run pod update

ScrollTopTabBarChtar

Getting Started

A step by step series of examples that tell you have to get a development env running

1- drag UIView in storyBoard
2- set it is class to (ScrollTopTabBar)
3- create IBOutlet from it

    @IBOutlet weak var scrollTapBar: ScrollTopTabBar!

4- Set dataSource of it that take array form

        public struct TabBarItem {
            var title : String!
            var icon : UIImage!
            var viewItem : UIView!

            init(itemTitle : String,itemIcon : UIImage,itemView : UIView) {

                title = itemTitle
                icon = itemIcon
                viewItem = itemView
            }
        }

        scrollTapBar.dataSource = [
                    TabBarItem.init(itemTitle: "Home", itemIcon: UIImage.init(named: "house")!, itemView: (viewController1?.view)!)]

Propety that you can change it in it

         scrollTapBar.showLineIndecator = false
         scrollTapBar.barHeight = 50
         scrollTapBar.barBackgroundColor  = UIColor.lightGray
         scrollTapBar.selectColor = UIColor.brown
         scrollTapBar.tintItemColor  = UIColor.green
         scrollTapBar.textFont = UIFont.systemFont(ofSize: 12)
         scrollTapBar.heightType  = HeightType.heightLightBackground  

         //last one refer to selection type that sould be one of 

         public enum HeightType {
            case heightLightItem
            case heightLightBackground 
         }

you should get like this result

Screenshot
Screenshot
Screenshot
Screenshot

Author

Latest podspec

{
    "name": "ScrollTopTabBarChtar",
    "platforms": {
        "ios": "8.0"
    },
    "version": "0.3",
    "summary": "Scroll to TapBar for iOS",
    "description": "That like similar to android tabBar for iOS",
    "homepage": "https://github.com/ragaie/ScrollTopTabBar",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Ragaie Alfy": "[email protected]"
    },
    "source": {
        "git": "https://github.com/ragaie/ScrollTopTabBar.git",
        "tag": "0.3"
    },
    "frameworks": [
        "UIKit",
        "Foundation"
    ],
    "source_files": "ScrollTopTabBar/scrollLibrary/*.swift",
    "resources": "ScrollTopTabBar/scrollLibrary/*.xib",
    "resource_bundles": {
        "ScrollTopTabBarChtar": [
            "ScrollTopTabBar/scrollLibrary/ButtonCell.xib",
            "ScrollTopTabBar/scrollLibrary/ScrollTopTabBar.xib",
            "ScrollTopTabBar/scrollLibrary/ViewCell.xib"
        ]
    },
    "pushed_with_swift_version": "4"
}

Pin It on Pinterest

Share This