[SwiftUI] Button Styles

RudinP·5일 전
0

Study

목록 보기
310/325

var body: some View {
        VStack {
            Button("Automatic", action: {})
                .padding()
                .buttonStyle(.automatic)
            
            Button("Plain", action: {})
                .padding()
                .buttonStyle(.plain)
            
            Button("Bordered", action: {})
                .padding()
                .buttonStyle(.bordered)
            
            Button("Bordered Prominent", action: {})
                .padding()
                .buttonStyle(.borderedProminent)
                .buttonBorderShape(.capsule)
 			//.automatic과 동일           
            Button("Borderless", action: {})
                .padding()
                .buttonStyle(.borderless)
        }
        .tint(.green)
    }
profile
iOS 개발자가 되기 위한 스터디룸...

0개의 댓글