Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksproger committed Nov 8, 2023
1 parent fd95c1d commit 104a7ab
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,22 @@ struct InteractiveExampleView: View {
}
```

#### Circular progress with rotating style

```swift
struct RotatingExampleView: View {
@State
var progress: Double = 0
let lineWidth: CGFloat

var body: some View {
CircularProgress(lineWidth: lineWidth, state: progress)
.progressStyle(.rotating)
.onTimer(1) { progress += 0.25 }
}
}
```

#### Circular progress with custom style

```swift
Expand Down Expand Up @@ -110,7 +126,7 @@ extension CircularProgressStyle where Self == CustomCircularProgressStyle {
```

#### Illustration of examples from Sources/Examples
https://github.com/aleksproger/circular-progress/assets/45671572/d331c110-fea4-4091-8a5d-3fb3b96587f9
https://github.com/aleksproger/circular-progress/assets/45671572/a27a3523-619a-4cb8-b88e-253e6360b706


## Requirements
Expand All @@ -122,13 +138,13 @@ https://github.com/aleksproger/circular-progress/assets/45671572/d331c110-fea4-4

## Installation

**SwiftPM:**
**SwiftPM**

```swift
.package(url: "https://github.com/aleksproger/circular-progress.git", .upToNextMajor(from: "1.1.0"))
```

**Bazel:**
**Bazel**

```python
git_repository(
Expand Down

0 comments on commit 104a7ab

Please sign in to comment.