Skip to content

Instantly share code, notes, and snippets.

@TuenTuenna
Created May 16, 2022 07:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TuenTuenna/e4095e36a051ddf8e705b8f899e6bc5d to your computer and use it in GitHub Desktop.
Save TuenTuenna/e4095e36a051ddf8e705b8f899e6bc5d to your computer and use it in GitHub Desktop.
SwiftUi-gradient-stroke-button
Button(action: {
                
            }, label: {
                
                Text("그래디언트 스트록 버튼")
                    .padding(20)
                    .background(
                        RoundedRectangle(cornerRadius: 16)
                        .stroke(lineWidth: 3)
                        .fill(
                            .linearGradient(Gradient(colors: [.red, .yellow]), startPoint: .leading, endPoint: .trailing)
                             )
                    )
            })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment