GO FURTHER, FASTER: Try the Swift Career Accelerator today! >>

SOLVED: API to detect focus mode? (Personal, Work, Sleep, etc)

Forums > SwiftUI

Hello everyone

I'm currently going through 100 days of swift (day 10/100)

I want to build an app that takes full advantage of widgets and native API's (for my previous app I was using React Native, hence the switch)

And I need to detect the current focus mode value (work, sleep, focus, personal, etc) and when it changes

Is this something that can be done as far as you know?

Any resources are much appreciated!

2      

Consider starting here?

See-> Getting into Focus

3      

Hacking with Swift is sponsored by RevenueCat.

SPONSORED Take the pain out of configuring and testing your paywalls. RevenueCat's all new Paywall Editor allow you to remotely configure your paywall view without any code changes or app updates.

Click to save your free spot now

Sponsor Hacking with Swift and reach the world's largest Swift community!

Archived topic

This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.

All interactions here are governed by our code of conduct.

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.