Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
appstefan authored May 12, 2023
1 parent 6f063cb commit b8d20e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ Converts a `String` of code into a highlighted `AttributedString`
#### `CodeText`
Drop-in replacement for a `Text` view with syntax highlighting
* ⬜️ Clear background by default
* 🌗 Color style syncs with Dark Mode
* 🔠 Based on `Text`, so modifiers like `.font()` work
* 🌗 Color style syncs with system Dark Mode
* 🔠 Based on `Text` and supports `.font()` modifier

<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/appstefan/HighlightSwift/assets/6455394/f8ec4cf4-80bd-49de-9ba4-f67effc4a9e4">
Expand Down Expand Up @@ -52,7 +52,7 @@ var body: some View {
}
```

Use the standard `.font()` modifier to adjust the font size and/or weight.
Use the `.font()` modifier to adjust the font size and/or weight.
The design is set internally to `.monospaced`:
```swift
CodeText(text)
Expand Down

0 comments on commit b8d20e4

Please sign in to comment.