目录
目录README.md

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
关于
52.0 KB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

©Copyright 2023 CCF 开源发展委员会
Powered by Trustie& IntelliDE 京ICP备13000930号