Giter Site home page Giter Site logo

toptabbar-chtar's Introduction

TopTabBar-Chtar

Build with native Swift targeting iphone and ipad, main functionality to make developer develop like native ios tab bar. But. can put it any where of design, im talking about just bar not all tabBar controller.

result from one live project using it:-

not this result only you can get from library, but you have full access to modify every parameter in component.

alt tag

###Getting Started

Installing

Add blow for your pod file

pod 'TopTabBar-Chtar' 
run pod update
import TopTabBar-Chtar

1- add custom view in your storyBoard -->. TopTabBar

2- leave project build and update view

3- then you will get screen like this

below what is every parameter in which change

1- @IBInspectable var buttonNumber : Int

Represent number of button that bar will provide, you will also need to provide array of string that provide button title with same numbe.

2- @IBInspectable var barBackgroundColor : UIColor

Represent bar background color.

3- @IBInspectable var itemBackgroundColor : UIColor

Represent button background color when it selected.

4- @IBInspectable var textColor : UIColor

Represent text default color for buttons.

5- @IBInspectable var titleTint: UIColor

Represent button title text color when it is selected.

6- @IBInspectable var spaceing : CGFloat

Reperesnt spacing between button inside stackview.

7- @IBInspectable var contentInsets : CGFloat

Represent spacing before and after button title text.

8- @IBInspectable var lineColor : UIColor

Represent line bar background color.

9- @IBInspectable var lineHight : CGFloat

Reperesnt line hight.

10- @IBInspectable var indecatorColor : UIColor

Represent background color of line that indicate selected item in bar.

11- you can also access stackView that contain items from code and modify aligned of item, as your business need.

12- Can you also make bar working with images only by provide, to array for default image and selected image. for code

Hint :- still beta under development, but you can try it.

to get slected index

you have conform delegate -->

TopTabBarDelegate

and set tabBar outlet with it

this delegate contain :

  func topTabBarSelected(index: Int) {
        
        print("Index \(index) had been selected")
    }

to select item from code :

  <TopTabBarOutlet>.selectitemAt(index: 2)

some result that you can achive from it:

Author

You can find me in linkedIn

toptabbar-chtar's People

Contributors

ragaie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

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.