MaterialDesignUIComponents

1.0.1

UI Components library for Swift. Currently supports MaterialDesign.
tichise/MaterialDesignUIComponents

What's New

1.0.1

2022-05-01T05:16:36Z

Github Actions workflow

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

Description

  • Swift Tools 5.5.0
View More Packages from this Author

Dependencies

  • None
Last updated: Sat Oct 19 2024 16:52:06 GMT-0900 (Hawaii-Aleutian Daylight Time)