Skip to content

Instantly share code, notes, and snippets.

@SarahAlsharif
Created September 13, 2020 02:03
Show Gist options
  • Select an option

  • Save SarahAlsharif/9ba0ee2c40a49ef86223be57428e0e9e to your computer and use it in GitHub Desktop.

Select an option

Save SarahAlsharif/9ba0ee2c40a49ef86223be57428e0e9e to your computer and use it in GitHub Desktop.
struct ContentView: View {
var body: some View {
Container {
ZStack {
RoundedRectangle(cornerRadius: 20)
.foregroundColor(Color.purple.opacity(0.4))
VStack {
Image(systemName: "person.crop.rectangle.fill")
.foregroundColor(.white)
.font(.system(size: 200))
.padding()
Text("My Photo")
.padding()
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment