Skip to content

Commit 1c25f83

Browse files
Improve cheatsheet (#318)
1 parent df3a671 commit 1c25f83

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

cheatsheet.html

+9-10
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ <h3>Priority</h3>
118118
<pre>require()</pre>
119119
<pre>withPriority(.high)</pre>
120120
<pre>prioritize(.high)</pre>
121-
<h3>Update</h3>
122-
<p>This method is useful for animating constraints.</p>
121+
<h3>Animation</h3>
122+
<p>This method is useful when animating constraints.</p>
123123
<pre>update()</pre>
124124
</td>
125125
<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
@@ -132,12 +132,14 @@ <h3>Size</h3>
132132
<pre>size(width: 200,
133133
height: 100,
134134
priority: .high)</pre>
135+
<h3>Width</h3>
135136
<pre>width(100)</pre>
136137
<pre>width(100, priority: .high)</pre>
137138
<pre>width(is: .lessThanOrEqual, to: 100)</pre>
138139
<pre>width(is: .lessThanOrEqual,
139140
to: 100,
140141
priority: .high)</pre>
142+
<h3>Height</h3>
141143
<pre>height(100)</pre>
142144
<pre>height(100, priority: .high)</pre>
143145
<pre>height(is: .lessThanOrEqual, to: 100)</pre>
@@ -257,6 +259,9 @@ <h3>Builder</h3>
257259
<pre>// Height //</pre>
258260
<pre>constrainingHeight()</pre>
259261
<pre>constrainingHeight(100)</pre>
262+
<h3>Size</h3>
263+
<pre>sizeConstraints()</pre>
264+
<pre>sizeConstraints(size)</pre>
260265
<h3>Width</h3>
261266
<pre>widthConstraint(is: relation)</pre>
262267
<pre>widthConstraint(is: relation,
@@ -269,9 +274,6 @@ <h3>Height</h3>
269274
to: 100)</pre>
270275
<pre>heightConstraint()</pre>
271276
<pre>heightConstraint(100)</pre>
272-
<h3>Size</h3>
273-
<pre>sizeConstraints()</pre>
274-
<pre>sizeConstraints(size)</pre>
275277
<h3>Square</h3>
276278
<pre>squareConstraint()</pre>
277279
<h3>Aspect Ratio</h3>
@@ -307,8 +309,7 @@ <h3>Attributes</h3>
307309
of: view,
308310
multiplier: 2,
309311
constant: 100)</pre>
310-
<pre> </pre>
311-
<pre>// Edge //</pre>
312+
<h3>Edges</h3>
312313
<pre>edgeConstraints()</pre>
313314
<pre>edgeConstraints(inset: 100)</pre>
314315
<pre>edgeConstraints(insets: directional)</pre>
@@ -439,9 +440,7 @@ <h3>Autoresizing Mask</h3>
439440
</td>
440441
</tr>
441442
</table>
442-
<p>&nbsp;</p>
443-
<p align="center">Copyright &copy; 2024 Tinder (Match Group, LLC)</p>
444-
<p>&nbsp;</p>
443+
<h4 align="center">Copyright &copy; 2024 Tinder (Match Group, LLC)</h4>
445444
</div>
446445
</body>
447446
</html>

0 commit comments

Comments
 (0)