-
-
Save sturdysturge/c5b47293f05ef19997251cfe8eda99c5 to your computer and use it in GitHub Desktop.
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 | |
@available(iOS 16.0, *) | |
extension AnyGradient: View { | |
public var body: some View { | |
Rectangle().fill(self) | |
} | |
} | |
@available(iOS 16.0, *) | |
struct ContentView: View { | |
var body: some View { | |
Color.red.gradient | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment