Created
May 26, 2021 10:26
-
-
Save iosdevie/d60b55e6e2a33b6f04f9d61def8b47f3 to your computer and use it in GitHub Desktop.
Fill Custom Views With Gradients
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RoundedRectangle(cornerRadius: cornerRadius) | |
.fill(LinearGradient(gradient: Gradient(colors: [.purple, .red, .blue]), startPoint: .top, endPoint: .bottom)) | |
.frame(width: 30, height: value) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment