TEAM LICENSES: Save money and learn new skills through a Hacking with Swift+ team license >>

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 Paywalls allow you to remotely configure your entire paywall view without any code changes or app updates.

Learn more here

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

Reply to this topic…

You need to create an account or log in to reply.

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.