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.
- Host: GitHub
- URL: https://github.com/boybeak/swiftuimaterialbutton
- Owner: boybeak
- License: mit
- Created: 2024-08-29T07:42:30.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-29T10:51:06.000Z (almost 2 years ago)
- Last Synced: 2025-02-06T01:42:53.319Z (over 1 year ago)
- Language: Swift
- Size: 1.05 MB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SwiftUIMaterialButton
A material design style button for swiftUI with ripple effect.

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

```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")
}
)
}
}
}
```