Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tichise/materialdesignuicomponents
UI Components library for Swift. Currently supports MaterialDesign.
https://github.com/tichise/materialdesignuicomponents
ios material-design swiftui ui ui-components
Last synced: about 1 month ago
JSON representation
UI Components library for Swift. Currently supports MaterialDesign.
- Host: GitHub
- URL: https://github.com/tichise/materialdesignuicomponents
- Owner: tichise
- License: mit
- Created: 2022-05-01T01:57:38.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-01T17:56:43.000Z (about 2 years ago)
- Last Synced: 2024-04-24T08:29:34.455Z (10 months ago)
- Topics: ios, material-design, swiftui, ui, ui-components
- Language: Swift
- Homepage:
- Size: 27.3 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Github Actions workflow](https://github.com/tichise/MaterialDesignUIComponents/actions/workflows/swift.yml/badge.svg)](https://github.com/tichise/MaterialDesignUIComponents/actions/workflows/swift.yml)
# MaterialDesignUIComponents
UI components library for Swift. Currently supports MaterialDesign.
## Sample
### ButtonStyle
ButtonStyleContained
```
struct ButtonStyleContained_Previews: PreviewProvider {
static var previews: some View {
Button("Button") {
}.buttonStyle(ButtonStyleContained())
}
}
```
ButtonStyleOutlined
```
struct ButtonStyleOutlined_Previews: PreviewProvider {
static var previews: some View {
Button("Button") {
}.buttonStyle(ButtonStyleOutlined(strokeColor: .black))
}
}
```
![]()
### ModifilerFillCard
```
struct FilledCard_Previews: PreviewProvider {
static var previews: some View {
HStack {
Text("text").padding(10)
}.modifier(FilledCard(cornerRadius: 5, backgroundColor: .yellow))
}
}
```
ElevatedCard
```
struct ElevatedCard_Previews: PreviewProvider {
static var previews: some View {
HStack {
Text("text").padding(10)
}.modifier(ElevatedCard(cornerRadius: 5, shadowColor: .gray))
}
}
```
![]()