@@ -50,8 +50,14 @@ ThrowableButton {
50
50
By default, when the button closure throws, the button will Shake on error.
51
51
For now, only the shake behavior is built-in:
52
52
53
- <figure ><img src =" /Preview/shake.gif " width =" 250 " ><figcaption >.throwableButtonStyle(.shake)</figcaption ></figure >
54
-
53
+ <table >
54
+ <tr>
55
+ <td><img src="/Preview/shake.gif" width="250"></td>
56
+ </tr>
57
+ <tr>
58
+ <td>.throwableButtonStyle(.shake)</td>
59
+ </tr>
60
+ </table >
55
61
56
62
You can disable it by passing ` .none ` to throwableButtonStyle:
57
63
@@ -114,14 +120,24 @@ AsyncButton {
114
120
While the progress is loading, the button will animate, defaulting by replacing the label of the button with a ` ProgressIndicator ` .
115
121
All sort of styles are built-in:
116
122
117
- <figure ><img src =" /Preview/overlay.gif " width =" 250 " ><figcaption >.throwableButtonStyle(.overlay)</figcaption ></figure >
118
-
119
- <figure ><img src =" /Preview/pulse.gif " width =" 250 " ><figcaption >.throwableButtonStyle(.pulse)</figcaption ></figure >
120
-
121
- <figure ><img src =" /Preview/leading.gif " width =" 250 " ><figcaption >.throwableButtonStyle(.leading)</figcaption ></figure >
122
-
123
- <figure ><img src =" /Preview/trailing.gif " width =" 250 " ><figcaption >.throwableButtonStyle(.trailing)</figcaption ></figure >
124
-
123
+ <table >
124
+ <tr>
125
+ <td><img src="/Preview/overlay.gif" width="250"></td>
126
+ <td><img src="/Preview/pulse.gif" width="250"></td>
127
+ </tr>
128
+ <tr>
129
+ <td>.throwableButtonStyle(.shake)</td>
130
+ <td>.throwableButtonStyle(.pulse)</td>
131
+ </tr>
132
+ <tr>
133
+ <td><img src="/Preview/leading.gif" width="250"></td>
134
+ <td><img src="/Preview/trailing.gif" width="250"></td>
135
+ </tr>
136
+ <tr>
137
+ <td>.throwableButtonStyle(.leading)</td>
138
+ <td>.throwableButtonStyle(.trailing)</td>
139
+ </tr>
140
+ </table >
125
141
126
142
You can disable this behavior by passing ` .none ` to ` asyncButtonStyle `
127
143
``` swift
0 commit comments