Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct ContentView: View {
- var body: some View {
- ZStack {
- // 1
- Image("profile")
- .resizable()
- .aspectRatio(contentMode: .fill)
- .blur(radius: 32)
- .overlay(.regularMaterial)
- // 2
- Image("profile")
- .resizable()
- .aspectRatio(contentMode: .fill)
- .blur(radius: 32)
- .mask { // 3
- VStack {
- Image("profile")
- .clipShape(Circle())
- .shadow(color: .black.opacity(0.15), radius: 3)
- Text("John Appleseed")
- .font(.title.bold())
- Text("@johnappl3s33d")
- .font(.callout)
- }
- }
- .overlay { // 4
- VStack {
- Image("profile")
- .clipShape(Circle())
- .shadow(color: .black.opacity(0.15), radius: 3)
- Text("John Appleseed")
- .font(.title.bold())
- .opacity(.zero) // 5
- Text("@johnappl3s33d")
- .font(.callout)
- .opacity(.zero)
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement