Latest 0.1.1
Homepage https://github.com/DeveloperFly/AGSwipeableTabBar
License MIT
Platforms ios 8.0
Authors

CI Status
Version
License
Platform

Example For Text SwipeableTabBar

Example

Example For icon SwipeableTabBar

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

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

pod 'AGSwipeableTabBar'

Example for assign the AGCommonTabView

Example

Properties which are Directly set by storyborad

  • heightTabViewPerportional :- Set the height of tab view with repect to your view.
  • tabBottomBarHeight: – Set the height of Tab view bottom bar.
  • numberOfitemInSection: – Pass the numer of tabs you want.
  • intialSelectedTab: – Pass the index which you want pre selected.
  • isShowBottomTabBar: – Set the Bool value Tab view bottom bar is shown or not.
  • isTabViewEqualScreenWidth: – Set the Bool Value for Tab bar width is eqaul to AGCommonTabView or not.

Exapmle

Properties which are directly set by view Instance (Example Data)

 let arrayTitle = ["TableView", "CollectionView", "View", "Button", "Label", "SegmentedController", "switch", "progressView", "Container", "commonView"]
 @IBOutlet weak var tabView: AGCommonTabView!

    override func viewDidLoad() {
        super.viewDidLoad()
        tabView.detailCollectionView.register(UINib.init(nibName: "TabOneCollectionViewCell", bundle: nil), forCellWithReuseIdentifier: "TabOneCollectionViewCell")
        tabView.delegate = self
        tabView.isShowBottomTabBar = true
        tabView.tabBottomBarHeight = 2
        tabView.tabBarBackgroundColor = UIColor.red.cgColor
        tabView.tabBarData.buttonTitleTextArray = arrayTitle
        tabView.tabBarData.tabHeader = .title // .icon
        tabView.tabBarData.buttonNormalImageArray = Array.init(repeating: UIImage(named: "homeUnselectdIcon")!, count: tabView.numberOfitemInSection)
        tabView.tabBarData.buttonSelectedImageArray = Array.init(repeating: UIImage(named: "HomeSlectedIcon")!, count: tabView.numberOfitemInSection)
        tabView.tabBarData.buttonSelectedIconColor = UIColor.black
        tabView.tabBarData.buttonNormalFontColor = UIColor.black
        tabView.sepratorViewBackgroundColor = UIColor.green
        tabView.tabBarData.iconTabWidth = 100
        tabView.initialSelectedTab(index: 2)
    }

Delegate methods (CommonTabDelegate)

 func cellForItemForDetailView(atIndex indexPath: IndexPath) -> UICollectionViewCell
 func collectionViewCurrentPage(_ currentPage: Int)

Author

[email protected]

License

MIT License

Copyright (c) 2018 Developer Fly

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": "AGSwipeableTabBar",
    "version": "0.1.1",
    "summary": "AGSwipeableTabBar is use for swipeable Tab bar. which is directly used by assign class into the view",
    "description": "TODO: AGSwipeableTabBar use for swipeable Tab bar. This swipeable tab bar is created by the use of collection views and have lots of features. This swipeable Tab bar is directly used by add file into view.",
    "swift_version": "4.0",
    "homepage": "https://github.com/DeveloperFly/AGSwipeableTabBar",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Aman gupta": "[email protected]"
    },
    "source": {
        "git": "https://github.com/DeveloperFly/AGSwipeableTabBar.git",
        "tag": "0.1.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "AGSwipeableTabBar/Classes/**/*",
    "resource_bundles": {
        "AGSwipeableTabBar": [
            "AGSwipeableTabBar/Assets/*.png"
        ]
    }
}

Pin It on Pinterest

Share This