https://github.com/kofktu/kuialignmentbuttonbar
Alignment Multiple Buttons
https://github.com/kofktu/kuialignmentbuttonbar
Last synced: 4 months 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 (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-11-06T07:22:56.000Z (over 7 years ago)
- Last Synced: 2025-02-20T18:43:16.373Z (5 months 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

[](http://cocoapods.org/?q=name%3AKUIAlignmentButtonBar%20author%3AKofktu)
[](https://github.com/Carthage/Carthage)- Alignment Multiple Buttons

## 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.