Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
costachung committed Dec 12, 2020
1 parent da32ee5 commit 871ea0e
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,13 +160,33 @@ softButtonStyle<S : Shape>(_ content: S, padding: CGFloat, mainColor: Color, tex

## Soft Toggle

## SoftSwitchToggleStyle
![Screen Shot 2020-12-12 at 4 16 16 PM](https://user-images.githubusercontent.com/169746/101979392-ce12d100-3c97-11eb-9d45-4e82cef6337b.png)

```swift
Toggle("Toggle", isOn: $toggleIsOn)
.softSwitchToggleStyle(tint: .green, labelsHidden: true)
```

## SoftToggleStyle
![a](https://user-images.githubusercontent.com/169746/101979822-5b0b5980-3c9b-11eb-8573-95eef281f6af.jpeg)

For example, Play and Stop Button
```swift
Toggle(isOn: $toggleIsOn, label: {
if toggleIsOn {
Image(systemName: "stop.fill")
.font(.title)
}
else{
Image(systemName: "play.fill")
.font(.title)
}
})
.softToggleStyle(Circle(), padding: 20)
```


## Contacts
https://twitter.com/costachung

Expand Down

0 comments on commit 871ea0e

Please sign in to comment.