Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
philptr authored Dec 7, 2019
1 parent a5304ba commit 0239c63
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![Circular Control](./Recources/CircularControl.png)
![Circular Control](https://github.com/philzet/PZCircularControl/blob/master/Resources/CircularControl.png)

# SwiftUI Circular Control

Expand All @@ -18,7 +18,7 @@ A custom circular progress bar made in SwiftUI.

### Basic example

```
```swift
PZCircularControl(
PZCircularControlParams(
innerBackgroundColor: Color.clear,
Expand All @@ -30,11 +30,11 @@ PZCircularControl(

This produces the following output:

![Output Image](./Recources/Example1.png)
![Output Image](https://github.com/philzet/PZCircularControl/blob/master/Resources/Example1.png)

The params object's instance data can be modified and animated. For example, the following code animates the control to the 35% state when the button is tapped:

```
```swift
PZExampleButton(label: "35%", font: .headline) {
withAnimation(.easeInOut(duration: 1.0)) {
control.params.progress = CGFloat(0.35)
Expand All @@ -46,7 +46,7 @@ PZExampleButton(label: "35%", font: .headline) {

### Dark background (see cover image)

```
```swift
PZCircularControl(
PZCircularControlParams(
innerBackgroundColor: Color.black,
Expand All @@ -62,7 +62,7 @@ PZCircularControl(

### Purple text and gradient fill

```
```swift
PZCircularControl(
PZCircularControlParams(
innerBackgroundColor: Color.clear,
Expand All @@ -76,7 +76,7 @@ PZCircularControl(
)
```

![Output Image](./Recources/Example2.png)
![Output Image](https://github.com/philzet/PZCircularControl/blob/master/Resources/Example2.png)

## Customization

Expand Down

0 comments on commit 0239c63

Please sign in to comment.