Latest 0.1
Homepage https://github.com/lm2343635/MGSelector
License MIT
Platforms ios 8.2
Dependencies SnapKit
Authors

Swift 4.2
CI Status
Version
License
Platform

Example

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

Installation

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

pod 'MGSelector', '~> 0.1'

Documentation

Prepare your model which confirms the MGSelectorModel protocol at first.

struct Option: MGSelectorOption {
    var title: String
    var detail: String?
}

Confirm the MGSelectable protocol in your view controller, and invokes the openSelector method.

let options: [Options] = ...

class ViewController: UIViewController, MGSelectable {
    //...

    @IBAction func open(_ sender: UIButton) {
        openSelector(title: "Title", options: options, theme: .dark)
    }
}

Author

lm2343635, [email protected]

License

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

Latest podspec

{
    "name": "MGSelector",
    "version": "0.1",
    "summary": "A customized table selector for iOS.",
    "description": "MGSelector is a customized table selector for iOS.",
    "homepage": "https://github.com/lm2343635/MGSelector",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "lm2343635": "[email protected]"
    },
    "source": {
        "git": "https://github.com/lm2343635/MGSelector.git",
        "tag": "0.1"
    },
    "social_media_url": "https://www.fczm.pw",
    "platforms": {
        "ios": "8.2"
    },
    "source_files": "MGSelector/Classes/**/*",
    "dependencies": {
        "SnapKit": [
            "~> 4"
        ]
    }
}

Pin It on Pinterest

Share This