Skip to content

Commit 5d049de

Browse files
committed
fix(readme): fix a few typos
1 parent 603bb9b commit 5d049de

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# ButtonKit
22

3-
ButtonKit provide two SwiftUI buttons to deal with throwable and asynchronous actions.
4-
By default, SwiftUI button only accept a closure.
3+
ButtonKit provides a new a SwiftUI Button replacement to deal with throwable and asynchronous actions.
4+
By default, SwiftUI Button only accept a closure.
55

66
With ButtonKit, you'll have access to an `AsyncButton` view, accepting a `() async throws -> Void` closure.
77

@@ -57,7 +57,7 @@ For now, only this shake behavior is built-in:
5757
</tr>
5858
</table>
5959

60-
You can disable still it by passing `.none` to throwableButtonStyle:
60+
You can still disable it by passing `.none` to throwableButtonStyle:
6161

6262
```swift
6363
AsyncButton {
@@ -70,7 +70,7 @@ AsyncButton {
7070

7171
You can also bring your own behavior using the `ThrowableButtonStyle` protocol.
7272

73-
In ThrowableButtonStyle, you can implement `makeLabel`, `makeButton` or both to alterate the button look and behavior.
73+
In ThrowableButtonStyle, you can implement `makeLabel`, `makeButton` or both to alter the button look and behavior.
7474

7575
```swift
7676
public struct TryAgainThrowableButtonStyle: ThrowableButtonStyle {
@@ -192,15 +192,15 @@ AsyncButton {
192192

193193
You can also build your own customization by implementing `AsyncButtonStyle` protocol.
194194

195-
Just like `ThrowableButtonStyle`, `AsyncButtonStyle` allows you to implement either `makeLabel`, `makeButton` or both to alterate the button look and behavior while loading is in progress.
195+
Just like `ThrowableButtonStyle`, `AsyncButtonStyle` allows you to implement either `makeLabel`, `makeButton` or both to alter the button look and behavior while loading is in progress.
196196

197197
### External triggering
198198

199199
You might need to trigger the behavior behind a button with specific user actions, like when pressing the "Send" key on the virtual keyboard.
200200

201201
Therefore, to get free animated progress and errors behavior on your button, you can't just start the action of the button by yourself. You need the button to start it.
202202

203-
To do so, you need to set an unique identifier to your button:
203+
To do so, you need to set a unique identifier to your button:
204204

205205
```swift
206206
enum LoginViewButton: Hashable {
@@ -301,7 +301,7 @@ Available TaskProgress implementation are:
301301

302302
## Contribute
303303

304-
You are encouraged to contribute to this repository, by opening issues, or pull requests for bug fixes, improvement requests, or support. Suggestions for contributing:
304+
You are encouraged to contribute to this repository, by opening issues, or pull requests for bug fixes, improvement requests, or support. Suggestions for contributions:
305305

306306
- Improving documentation
307307
- Adding some automated tests 😜

0 commit comments

Comments
 (0)