Posts

Post not yet marked as solved
1 Replies
0 Views
You have a function definition there rather than a function call. In the function definition you need to write the type of the thing you expect (Int) rather than any specific instance of that type (4). Later, when you call the function you have written you'll pass in 4.
Post marked as solved
2 Replies
0 Views
vova085 was right. I was trying to do some of the blocking/unblocking from within the app and some of the blocking/unblocking from the extension and that... doesn't work. I claim that it probably ought to work given that you can't have more than one app with permission to modify shields/blocks on any given device, but it doesn't. Changing my code to only communicate changes to the extension via CoreData/CloudKit and making all permission changes from callbacks there fixed the issue.