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
719
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
491
Jun ’20
Do I need to finish OAuth flow (exchange code for access token)
After users sign in, grant permission, and redirect back to my app. I got something like this```{"state"=>"***","code"=>"yyyy", "id_token"=>"zzzz","user"=>"{....}"}```Which is everything I need to create a user account, but the OAuth flow isn't finished yet. For a normal flow, we would use that code to fetch access token from `https://appleid.apple.com/auth/token`https://developer.apple.com/documentation/signinwithapplerestapi/generate_and_validate_tokensMy question is, should I do that? It seems to add no value to the current situation.
0
0
397
Jan ’20