UI components library for Swift. Currently supports MaterialDesign.
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))
}
}
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))
}
}