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
import SwiftUI | |
import PlaygroundSupport | |
struct ContentView: View { | |
@State var gradientAngle: Double = 0 | |
let colors: [Color] = [ | |
.pink, | |
.red, | |
.orange, |
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
import SwiftUI | |
import PlaygroundSupport | |
let gradient: Gradient = Gradient(colors: [.yellow, .green, .blue, .purple, .red]) | |
extension Color { | |
public static let systemBackground: Color = Color(UIColor.systemBackground) | |
} | |
struct Shape: View { |