Post

Replies

Boosts

Views

Activity

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
759
Jun ’20
What is matchingSignature in LibraryItem
From the LibraryItem doc https://developer.apple.com/documentation/developertoolssupport/libraryitem/init(_:visible:title:category:matchingsignature:) there is a matchingSignature which I'm not sure how to use it. matchingSignature An overload for which the item presents its code completion. You typically use this parameter when setting up an item as a source of custom code completion. At the time of completion, the code completion engine looks for an item matching the signature and inserts its completion, if found. What is the valid argument for this parameter?
1
0
516
Jun ’20