Skip to content

Commit

Permalink
chore: update README.md
Browse files Browse the repository at this point in the history
add example code
  • Loading branch information
guoyingtao authored May 1, 2024
1 parent e0703dd commit dbc3c1a
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,26 @@ A font settings view made by SwiftUI
## Install
### Swift Packages
* Repository: https://github.com/guoyingtao/SwiftUIFontSettings.git
* Rules: Version - Exact - 1.0.0
* Rules: Version - Exact - 1.0.0

## Usage

```Swift
@State private var fontSettings: FontSettings = FontSettings()
...
FontSettingsView(fontSettings: $fontSettings)

...

FontSettingsView(fontSettings: $fontSettings, showExtraTopContent: true, topContentBuilder: {
// some view here
})

...
FontSettingsView(fontSettings: $fontSettings, showExtraBottomContent: true, bottomContentBuilder: {
// some view here
})
```

## Demos
<p align="center">
Expand Down

0 comments on commit dbc3c1a

Please sign in to comment.