Skip to content

Commit 67c4627

Browse files
authored
Update README.md
1 parent 89d8cbf commit 67c4627

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ A grouped buttons supporting multiple/radio selection and automatic layout by bu
77
## Demo (captured by GIPHY CAPTURE)
88
![
99
](https://github.com/danceyoung/selectmultiplebuttons/blob/master/demo/selectmultiplebuttons-demo.gif?raw=true)
10+
## Installation
11+
Edit your podfile
12+
13+
pod 'selectmultiplebuttons', '~> 0.0.3'
14+
15+
## View frames hierarchy
16+
![enter image description here](https://github.com/danceyoung/selectmultiplebuttons/blob/master/demo/viewframehierarchy.png?raw=true)
1017
## Instruction
1118
You must adopt the `SelectMultipleButtonsDelegate` protocol. The protocol likes UITableViewDelegate and UITableDatasource, providing information that SelectMultipleButtons need to construct buttons and manage button selection...
1219

@@ -36,11 +43,15 @@ _//between space (vertical space and horizontal space between buttons)_
3643

3744

3845
@objc optional func didSingleTapOf(selectMultipleButtons: SelectMultipleButtons, atIndex index: Int) -> Void
39-
_//indexes selected and changed_
46+
_//indexes selected and changed event_
4047

4148

4249
@objc optional func indexesSelectedOf(selectMultipleButtons: SelectMultipleButtons, didChange indexes: [Int]) -> Void
4350
## code snap
51+
Import modules
52+
53+
import selectmultiplebuttons
54+
4455
Init a selectMultipleButtons
4556
_//width is the maxwidth for SelectMultipleButtons view_
4657

@@ -78,3 +89,6 @@ Conform required protocol
7889
let betweenSpace = BetweenSpace.init(horizontalSpace: 5, verticalSpace: 5)
7990
return StyleConfig.init(edgeSpace: edgeSpace, betweenSpace: betweenSpace, systemFontSize: 18)
8091
}
92+
93+
## License
94+
selectmultiplebuttons is [MIT licensed](https://github.com/danceyoung/selectmultiplebuttons/blob/master/LICENSE).

0 commit comments

Comments
 (0)