Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kofktu/kuialignmentbuttonbar

Alignment Multiple Buttons
https://github.com/kofktu/kuialignmentbuttonbar

Last synced: about 1 month ago
JSON representation

Alignment Multiple Buttons

Awesome Lists containing this project

README

        

# KUIAlignmentButtonBar

![Swift](https://img.shields.io/badge/Swift-4.0-orange.svg)
[![CocoaPods](http://img.shields.io/cocoapods/v/KUIAlignmentButtonBar.svg?style=flat)](http://cocoapods.org/?q=name%3AKUIAlignmentButtonBar%20author%3AKofktu)
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)

- Alignment Multiple Buttons

![alt tag](Screenshot/KUIAlignmentButtonBar.png)

## Requirements
- iOS 8.0+
- Swift 4.0

## Installation

#### CocoaPods
KUIButtonBar is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:

```ruby
pod 'KUIAlignmentButtonBar'
```

#### Carthage
For iOS 8+ projects with [Carthage](https://github.com/Carthage/Carthage)

```
github "Kofktu/KUIAlignmentButtonBar"
```

## Usage

#### KUIAlignmentButtonBar

```swift
public class KUIAlignmentButtonBar {
var numberOfButtons: Int = 1
var buttonGap: CGFloat = 4.0
var alignment: KUIAlignment = .left
var insets: UIEdgeInsets = UIEdgeInsets.zero
}

```

#### KUIAlignmentButtonBarDelegate

```swift
protocol KUIAlignmentButtonBarDelegate {
// Required
func render(_ buttonBar: KUIAlignmentButtonBar, button: UIButton, index: Int)

// Optional
optional func click(_ buttonBar: KUIAlignmentButtonBar, button: UIButton, index: Int)
optional func selected(_ buttonBar: KUIAlignmentButtonBar, button: UIButton, index: Int)
}

```

## Authors

Taeun Kim (kofktu),

## License

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