Skip to content

Commit

Permalink
Improve cheatsheet (#318)
Browse files Browse the repository at this point in the history
  • Loading branch information
tinder-cfuller authored Jan 31, 2024
1 parent df3a671 commit 1c25f83
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions cheatsheet.html
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ <h3>Priority</h3>
<pre>require()</pre>
<pre>withPriority(.high)</pre>
<pre>prioritize(.high)</pre>
<h3>Update</h3>
<p>This method is useful for animating constraints.</p>
<h3>Animation</h3>
<p>This method is useful when animating constraints.</p>
<pre>update()</pre>
</td>
<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
Expand All @@ -132,12 +132,14 @@ <h3>Size</h3>
<pre>size(width: 200,
height: 100,
priority: .high)</pre>
<h3>Width</h3>
<pre>width(100)</pre>
<pre>width(100, priority: .high)</pre>
<pre>width(is: .lessThanOrEqual, to: 100)</pre>
<pre>width(is: .lessThanOrEqual,
to: 100,
priority: .high)</pre>
<h3>Height</h3>
<pre>height(100)</pre>
<pre>height(100, priority: .high)</pre>
<pre>height(is: .lessThanOrEqual, to: 100)</pre>
Expand Down Expand Up @@ -257,6 +259,9 @@ <h3>Builder</h3>
<pre>// Height //</pre>
<pre>constrainingHeight()</pre>
<pre>constrainingHeight(100)</pre>
<h3>Size</h3>
<pre>sizeConstraints()</pre>
<pre>sizeConstraints(size)</pre>
<h3>Width</h3>
<pre>widthConstraint(is: relation)</pre>
<pre>widthConstraint(is: relation,
Expand All @@ -269,9 +274,6 @@ <h3>Height</h3>
to: 100)</pre>
<pre>heightConstraint()</pre>
<pre>heightConstraint(100)</pre>
<h3>Size</h3>
<pre>sizeConstraints()</pre>
<pre>sizeConstraints(size)</pre>
<h3>Square</h3>
<pre>squareConstraint()</pre>
<h3>Aspect Ratio</h3>
Expand Down Expand Up @@ -307,8 +309,7 @@ <h3>Attributes</h3>
of: view,
multiplier: 2,
constant: 100)</pre>
<pre> </pre>
<pre>// Edge //</pre>
<h3>Edges</h3>
<pre>edgeConstraints()</pre>
<pre>edgeConstraints(inset: 100)</pre>
<pre>edgeConstraints(insets: directional)</pre>
Expand Down Expand Up @@ -439,9 +440,7 @@ <h3>Autoresizing Mask</h3>
</td>
</tr>
</table>
<p>&nbsp;</p>
<p align="center">Copyright &copy; 2024 Tinder (Match Group, LLC)</p>
<p>&nbsp;</p>
<h4 align="center">Copyright &copy; 2024 Tinder (Match Group, LLC)</h4>
</div>
</body>
</html>

0 comments on commit 1c25f83

Please sign in to comment.