Post

Replies

Boosts

Views

Activity

Adding multiple custom catalogs?
The operation couldn’t be completed. (com.apple.ShazamKit error 300.) I get this error when I try to add multiple shazamcatalogs on a single SHCustomCatalog. The fact that the operation is called add(from:) and not 'load' lets me suggest that it's meant to use that way. Am I wrong? And yes, both work work if I just add one at a time. let catalog = SHCustomCatalog() do { try catalog.add(from: url1) try catalog.add(from: url2) {...} } catch {...} . . Also, fun fact: I was working on a ShazamKit myself before dubDub and it's a really fascinating topic and so awesome to see how well it works, great job! 👏
1
0
991
Jun ’21
Multiple trailing closures with default nil arguments
Hi, To use the code from SE-0279: func transition(with view: View, 								duration: TimeInterval, 								animations: (() -> Void)? = nil, 								completion: (() -> Void)? = nil) { } transition(with: view, duration: 2.0) { 		//executes as completion } /* //doesn't work transition(with: 1)     animations: {         ...     }/ This calls the completion: method without providing a label. But as far as I see there's no way of only passing animations: without a completion:... is this intended?
1
0
685
Jun ’20