Latest 0.2.0
Homepage https://github.com/DepositDev/DISegmentedView
License MIT
Platforms ios 8.0, requires ARC
Authors

Minimalistic segmented view with buttons as single segment. Dot indicator used to show which segment currently selected.

Usage

DISegmentedView is simple in use. All configurations fully compatible with InterfaceBuilder. Or you can create this component from code:

let newSegmentedView = DISegmentedView(names: ["first", "second", "third"], frame: CGRect(x: 0, y: 0, width: 100, height: 44))
view.addSubview(newSegmentedView)

And use it as usual UIControl:

newSegmentedView.addTarget(self, action: #selector(valueDidChanged(_:)), forControlEvents: .ValueChanged)

Installation

CocoaPods

Add pod 'DISegmentedView' to your Podfile.

Manual Installation

Just copy DISegmentedView class to your project.

Requirements

  • Xcode 7.0
  • iOS 8.0+

License

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

Latest podspec

{
    "name": "DISegmentedView",
    "version": "0.2.0",
    "summary": "Dot indicator segmented view.",
    "homepage": "https://github.com/DepositDev/DISegmentedView",
    "license": "MIT",
    "authors": {
        "spromicky": "[email protected]"
    },
    "source": {
        "git": "https://github.com/DepositDev/DISegmentedView.git",
        "tag": "0.2.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "DISegmentedView/code/DISegmentedView/*",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This