Giter Site home page Giter Site logo

ptcardtabbar's Introduction

PTCardTabBar

CI Status Version License Platform

Screenshots

1 2

Example

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

Requirements

Installation

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

pod 'PTCardTabBar'

Author

hussc, [email protected]

License

PTCardTabBar is available under the MIT license. See the LICENSE file for more info.

ptcardtabbar's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ptcardtabbar's Issues

selected-Index

how can I select a specific index of tab bar programmatically?
like..
if let tabBarController = APP_DELEGATE.window?.rootViewController as? UITabBarController {
tabBarController.selectedIndex = 2
}

How to set title to the Tabbar Item

I want to add title to the tab bar item, I did it below way, but it is not showing, please help.

vc1.tabBarItem = UITabBarItem(title: "home", image: UIImage(named: "home"), tag: 1)

UITabbarController Delegate methods not being called

I've used this in one of my application, implemented self.delegate = self in override open func viewDidLoad() but though tabbarcontroller's delegate method shouldSelect viewController is not being called. What should I do?

Storyboard, load view in the selected item tab bar

there is an issue happened with this scenario
1- select item 0 and then from presented view controller(for example it is list) navigate to another view controller (details x for example)
2- select tab bar item 1
3- return back to tab bar item 0 (will present details x) not the main view controller for tab bar item 0

this code to solve this issue , in PTCardTabBarController

extension PTCardTabBarController: CardTabBarDelegate {
func cardTabBar(_ sender: PTCardTabBar, didSelectItemAt index: Int) {
self.selectedIndex = index

    // this code added by me to solve this issue 

    let nav = self.selectedViewController as! UINavigationController
    nav.popToRootViewController(animated: false)

  // end my code
    
}

}

Customization of elements

So I stumbled upon this cool looking TabBar and wanted to give it a go.

I created a UITabBarController from the storyboard, then proceeded to create a custom class that is a subclass of PTCardTabBarController. I was able to set the icons but wasn't able to customize the tab bar, the button of items and other elements.

Could you assist me as to how I could further stylize all of the elements?

Also, if I wanted to reduce the width of the tab bar, how could that be done?

Looking forward to hearing from you.

Thanks in advance!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.