Post

Replies

Boosts

Views

Activity

Reply to macOS cannot use custom UNNotificationSounds ?
After some great detective work from another developer it seems that the issue is caused by the "Play user interface sound effects" option in the 'Sound Effects' section of the 'Sound' System Preferences pane. I had to turn that option off, delete my app, reboot, then re-enable that option and the custom sounds now work. The .caf files still don't work, but that can be worked around.
Oct ’22
Reply to Returning a type from an Intent (basics)
Ahh, I see. ReturnsValue is generic and you have to provide the concrete type you are going to return. https://developer.apple.com/forums/thread/723455 So in my case, the perform method signature needs to be func perform() async throws -> some IntentResult & ReturnsValue<Double> The docs could be a bit clearer here IMHO.
Topic: App & System Services SubTopic: General Tags:
Nov ’23
Reply to Cannot scan for iBeacons (macOS)
I cross-posted to StackOverflow and got this useful answer: https://stackoverflow.com/a/68397848/568104 Apparently iBeacon APIs are not available on MacOS, despite the docs stating that they are available on MacOS.
Replies
Boosts
Views
Activity
Jul ’21
Reply to macOS cannot use custom UNNotificationSounds ?
FYI, this is on Monterey 12.6
Replies
Boosts
Views
Activity
Oct ’22
Reply to macOS cannot use custom UNNotificationSounds ?
As this appears to be a bug (to me), I have filed a Radar. (FB11642483)
Replies
Boosts
Views
Activity
Oct ’22
Reply to macOS cannot use custom UNNotificationSounds ?
I've updated the sample app with multiple sounds, in multiple formats. None of them appears to work. Except one MP3 (very odd) - note not any MP3, just this one.
Replies
Boosts
Views
Activity
Oct ’22
Reply to macOS cannot use custom UNNotificationSounds ?
After some great detective work from another developer it seems that the issue is caused by the "Play user interface sound effects" option in the 'Sound Effects' section of the 'Sound' System Preferences pane. I had to turn that option off, delete my app, reboot, then re-enable that option and the custom sounds now work. The .caf files still don't work, but that can be worked around.
Replies
Boosts
Views
Activity
Oct ’22
Reply to Returning a type from an Intent (basics)
Ahh, I see. ReturnsValue is generic and you have to provide the concrete type you are going to return. https://developer.apple.com/forums/thread/723455 So in my case, the perform method signature needs to be func perform() async throws -> some IntentResult & ReturnsValue<Double> The docs could be a bit clearer here IMHO.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’23
Reply to TextField("x", value: $y, format: .currency(code: "USD")) Behaves oddly
Thanks. So is .currency() mainly for non-editable formatting?
Topic: UI Frameworks SubTopic: SwiftUI
Replies
Boosts
Views
Activity
Jun ’24
Reply to Temporarily disable macOS capture of USB RFID reader(s)
Thanks Kevin. 'despair' is a particularly good name for that account...
Topic: App & System Services SubTopic: Hardware Tags:
Replies
Boosts
Views
Activity
Jan ’26