1

How to check if focus mode is enabled?

I am using the following code.

var isFocus = INFocusStatusCenter.default.focusStatus.isFocused! 

but it always returns false. doesn't matter whether focus mode is enabled or not.

taking the guide from this link: https://stackoverflow.com/a/69278761/8894035 https://developer.apple.com/documentation/sirikit/infocusstatuscenter

Wahab Khan Jadon
  • 875
  • 13
  • 21

0 Answers0