Skip to content

Commit 164d919

Browse files
committed
Add Usage section
Signed-off-by: Gray Campbell <12163070+graycampbell@users.noreply.github.com>
1 parent d39531d commit 164d919

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff 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
2223
protocolDeclaration.isActorConstrained
2324
```
2425

2526
</td>
26-
<td style="width: 50%;">
27+
<td>
2728

2829
```swift
2930
let 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

5665
The simplest way to contribute to this project is by [opening an issue](https://github.com/fetch-rewards/SwiftSyntaxSugar/issues/new).

0 commit comments

Comments
 (0)