How to find the current focus status inside the app?
I implemented SetFocusFilterIntent for focus filter API. Is it possible to detect the current focus mode inside our main app?
Yes, it is possible to get the current configuration by accessing the static current variable of your intent.
@available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
extension SetFocusFilterIntent {
public static var current: Self { get async throws }
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With