Skip to content

Commit fe51669

Browse files
committed
Using table for README
1 parent 2ecf37f commit fe51669

File tree

1 file changed

+26
-10
lines changed

1 file changed

+26
-10
lines changed

README.md

+26-10
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,14 @@ ThrowableButton {
5050
By default, when the button closure throws, the button will Shake on error.
5151
For now, only the shake behavior is built-in:
5252

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>
5561

5662
You can disable it by passing `.none` to throwableButtonStyle:
5763

@@ -114,14 +120,24 @@ AsyncButton {
114120
While the progress is loading, the button will animate, defaulting by replacing the label of the button with a `ProgressIndicator`.
115121
All sort of styles are built-in:
116122

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>
125141

126142
You can disable this behavior by passing `.none` to `asyncButtonStyle`
127143
```swift

0 commit comments

Comments
 (0)