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