Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
struct PosterView : View{
@Binding var bgColor: Color
@Binding var text: String
var body: some View{
ZStack {
Rectangle().fill($bgColor.wrappedValue.gradient)
.cornerRadius(20)
VStack {
Text(text)
.font(.largeTitle)
.foregroundColor(.white)
.minimumScaleFactor(0.5)
.padding()
Image(systemName: "swift")
.font(.system(size: 80))
.backgroundStyle(.clear)
.foregroundStyle(.white)
.padding(20)
}
}
.padding()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment