An open API service indexing awesome lists of open source software.

https://github.com/boybeak/swiftuimaterialbutton

A material design style button for swiftUI with ripple effect.
https://github.com/boybeak/swiftuimaterialbutton

Last synced: over 1 year ago
JSON representation

A material design style button for swiftUI with ripple effect.

Awesome Lists containing this project

README

          

# SwiftUIMaterialButton
A material design style button for swiftUI with ripple effect.

![video](./Art/material-button.gif)

## Installation
Open XCode, **File** -> **Add Package Denpendencies** -> Search `https://github.com/boybeak/SwiftUIMaterialButton.git` -> **Add Package**.

## Usage

![image](./Art/material-button.png)

```swift
import SwiftUIMaterialButton

struct MaterialButtonView : View {
var body: some View {
VStack {
MaterialButton(
action: {
},
label: {
Text("Default style(color: accent, raidus: 4)")
}
)

MaterialButton(
backgroundColor: .cyan,
radius: 8,
action: {
},
label: {
Text("Color: cyan, radisu: 8")
}
)

MaterialButton(
backgroundColor: .indigo,
radius: 16,
action: {
},
label: {
Text("Color: indigo, radisu: 16")
}
)
}
}
}
```