File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -5,25 +5,26 @@ The purpose of this library is to improve the readability and maintainability of
55
66- [ Example] ( #example )
77- [ Installation] ( #installation )
8+ - [ Usage] ( #usage )
89- [ Contributing] ( #contributing )
910- [ License] ( #license )
1011
1112## Example
1213
13- <table style = " width : 100 % ; table-layout : fixed ; " >
14+ <table >
1415<tr >
1516<td > With <code >SwiftSyntaxSugar</code > </td >
1617<td > Without <code >SwiftSyntaxSugar</code > </td >
1718</tr >
1819<tr >
19- <td style = " width : 50 % ; " >
20+ <td >
2021
2122``` swift
2223protocolDeclaration.isActorConstrained
2324```
2425
2526</td >
26- <td style = " width : 50 % ; " >
27+ <td >
2728
2829``` swift
2930let isProtocolActorConstrained = protocolDeclaration.inheritanceClause ? .inheritedTypes .contains { inheritedType in
@@ -51,6 +52,14 @@ To add `SwiftSyntaxSugar` to a Swift package manifest file:
5152 .product (name : " SwiftSyntaxSugar" , package : " SwiftSyntaxSugar" )
5253 ```
5354
55+ ## Usage
56+
57+ - Import ` SwiftSyntaxSugar ` :
58+ ``` swift
59+ import SwiftSyntaxSugar
60+ ```
61+ - Use ` SwiftSyntax ` exactly how you normally would!
62+
5463## Contributing
5564
5665The simplest way to contribute to this project is by [ opening an issue] ( https://github.com/fetch-rewards/SwiftSyntaxSugar/issues/new ) .
You can’t perform that action at this time.
0 commit comments