Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Commit 5f841ac

Browse files
committed
Merge branch 'feature/doc-update' into develop
2 parents 9b9418b + f29351b commit 5f841ac

File tree

1 file changed

+20
-21
lines changed

1 file changed

+20
-21
lines changed

README.md

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ barceloneta is the right way to increment/decrement values with a simple gesture
1313

1414
## Features
1515

16-
- [x] Customisation for timer and incremental values
17-
- [x] Easily customisable
18-
- [x] Horizontal/vertical mode
19-
- [x] Looping through values or not
20-
- [x] Customizable dragging limit
21-
- [x] Minimal/maximal values
22-
- [x] [Complete Documentation](http://arn00s.github.io/barceloneta/)
16+
- Customisation for timer and incremental values
17+
- Easily customisable
18+
- Horizontal/vertical mode
19+
- Looping through values or not
20+
- Customizable dragging limit
21+
- Minimal/maximal values
22+
- [Complete Documentation](http://arn00s.github.io/barceloneta/)
2323

2424
## Requirements
2525

@@ -30,7 +30,7 @@ barceloneta is the right way to increment/decrement values with a simple gesture
3030

3131
## Communication
3232

33-
- If you **need help**, use [Stack Overflow](http://stackoverflow.com/questions/tagged/barceloneta). (Tag 'Barceloneta')
33+
- If you **need help**, use [Stack Overflow](http://stackoverflow.com/questions/tagged/barceloneta). (Tag '#barceloneta')
3434
- If you'd like to **ask a general question**, use [Stack Overflow](http://stackoverflow.com/questions/tagged/barceloneta).
3535
- If you **found a bug**, open an issue.
3636
- If you **have a feature request**, open an issue.
@@ -77,14 +77,15 @@ To enable the gesture, it is required to have :
7777
barcelonetaView.loops = true
7878
barcelonetaView.minimumValue = 0.0
7979
barcelonetaView.maximumValue = 50.0
80-
barcelonetaView.timerSettings = [
81-
(range: 0..<70, timer: 0.3, increment: 1.0),
82-
(range: 70..<120, timer: 0.2, increment: 2.0),
83-
(range: 120..<500, timer: 0.1, increment: 3.0)
80+
let timerSettings = [
81+
(range: 0..<70, timer: 0.3, increment: 1.0),
82+
(range: 70..<120, timer: 0.2, increment: 2.0),
83+
(range: 120..<500, timer: 0.1, increment: 3.0)
8484
]
85-
barcelonetaView.makeElastic(withConstraint: bcnViewHorizontalConstraint,
86-
onAxis: .horizontal,
87-
andDelegate: self)
85+
barcelonetaView.makeElastic(timerSettings: timerSettings,
86+
constraint: myNSLayoutConstraint
87+
axis: .vertical,
88+
delegate: self)
8889
```
8990

9091
### Configuration
@@ -113,20 +114,20 @@ barcelonetaView.maximumValue = 50.0
113114
```
114115

115116
#### Dragging limit
116-
This value defines the dragging limit of your `barceloneta` object. If the user draggs the view higher than this limit, a rubber effect will apply. The view will go up/down slower than your finger.
117+
This value defines the dragging limit of your `barceloneta` object. If the user drags the view higher than this limit, a rubber effect will apply. The view will go up/down slower than your finger.
117118

118119
```swift
119120
barcelonetaView.draggingLimit = 50.0
120121
```
121122

122123
#### Timer Settings
123124

124-
The timerSettings property is an array of bjects, defining the timer interval and incremental value for a specific range.
125+
The timerSettings property is an array of objects, defining the timer interval and incremental value for a specific range.
125126
It is required to have at least an object in the timer setting.
126127

127128
Depending on the percentage, the matching settings will be applied.
128129

129-
A deplacement of 100% corresponds to the draggingLimit.
130+
A drag of 100% corresponds to the draggingLimit.
130131

131132
```swift
132133
(range:0..<70, timer: 0.3, increment: 1.0)
@@ -145,8 +146,6 @@ If you installed `barceloneta` via CocoaPods and use it with Storyboard/xib, you
145146

146147
## TODO
147148

148-
- A more Swifty code
149-
- Unit testing
150149
- UI Testing
151150

152151
## Known issues
@@ -167,7 +166,7 @@ You're looking for an innovative way to increment/decrement values
167166
## Contact
168167

169168
- [LinkedIn](https://lu.linkedin.com/in/arnaudschloune)
170-
- [twitter](https://twitter.com/arnaud_momo)
169+
- [twitter](https://twitter.com/mmommommomo)
171170

172171
### Creator
173172

0 commit comments

Comments
 (0)