Latest 1.0.2
Homepage https://github.com/MuJuiLin/MJLCategoryView
License MIT
Platforms ios 9.0, requires ARC
Authors

The implementation of android tab bar unit in Swift.

Installation

pod 'MJLCategoryView'

Usage

Example

You can use storyboad to create this view easily.

@IBOutlet weak var categoryView: MJLCategoryView! {
    didSet {
        var style = MJLCategoryStyle()
        style.titleNumberOfLine = 2
        style.widthType = .contentWidth

        // If you don't want to change any settings, you can ignore MJLCategoryStyle.
        categoryView.categoryStyle = style 

        categoryView.categoryTitles = titles
        categoryView.defaultSelectedButtonIndex = 0
        categoryView.delegate = self
    }
}

Screencasts

loading

Latest podspec

{
    "name": "MJLCategoryView",
    "version": "1.0.2",
    "summary": "The implementation of android tab bar unit in Swift.",
    "description": "The implementation of android tab bar unit in Swift. n    You can use it in a pretty easy way.n    * Please feel free to tell me if you have any ideas to make it better.",
    "homepage": "https://github.com/MuJuiLin/MJLCategoryView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Mujui Lin": "[email protected]"
    },
    "platforms": {
        "ios": "9.0"
    },
    "swift_version": "4.0",
    "source": {
        "git": "https://github.com/MuJuiLin/MJLCategoryView.git",
        "tag": "1.0.2"
    },
    "source_files": "MJLCategoryView/*.swift",
    "exclude_files": "Classes/Exclude",
    "requires_arc": true
}

Pin It on Pinterest

Share This