Post

Replies

Boosts

Views

Created

How to make ContainerRelativeShape work on iOS?
I try to use ContainerRelativeShape to clip my Image, but it doesn't work. Do I miss something? VStack { 		Image("big-sur") 				.resizable() 				.frame(width: 200, height: 200) 				.clipShape(ContainerRelativeShape()) 				.padding(padding) } .background(Color(UIColor.secondarySystemBackground)) .clipShape(RoundedRectangle(cornerRadius: 30))
1
0
804
Jun ’20