
MaterialDesignUIComponents
UI components library for Swift. Currently supports MaterialDesign.
Sample
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))
}
}
Modifiler
FillCard
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))
}
}
MaterialDesignUIComponents
UI components library for Swift. Currently supports MaterialDesign.
Sample
ButtonStyle
ButtonStyleContained
ButtonStyleOutlined
Modifiler
FillCard
ElevatedCard