Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kofktu/kuialignmentbuttonbar
Alignment Multiple Buttons
https://github.com/kofktu/kuialignmentbuttonbar
Last synced: about 1 month ago
JSON representation
Alignment Multiple Buttons
- Host: GitHub
- URL: https://github.com/kofktu/kuialignmentbuttonbar
- Owner: Kofktu
- License: mit
- Created: 2016-10-05T03:53:38.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-06T07:22:56.000Z (about 7 years ago)
- Last Synced: 2024-11-17T03:36:18.272Z (about 1 month ago)
- Language: Swift
- Size: 47.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.