Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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.

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

image

ButtonStyleOutlined
```
struct ButtonStyleOutlined_Previews: PreviewProvider {
static var previews: some View {
Button("Button") {
}.buttonStyle(ButtonStyleOutlined(strokeColor: .black))
}
}
```

image

### Modifiler

FillCard
```
struct FilledCard_Previews: PreviewProvider {
static var previews: some View {
HStack {
Text("text").padding(10)
}.modifier(FilledCard(cornerRadius: 5, backgroundColor: .yellow))
}
}
```

image

ElevatedCard
```
struct ElevatedCard_Previews: PreviewProvider {
static var previews: some View {
HStack {
Text("text").padding(10)
}.modifier(ElevatedCard(cornerRadius: 5, shadowColor: .gray))
}
}
```

image