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+

TAKE YOUR SKILLS TO THE NEXT LEVEL If you like Hacking with Swift, you'll love Hacking with Swift+ – it's my premium service where you can learn advanced Swift and SwiftUI, functional programming, algorithms, and more. Plus it comes with stacks of benefits, including monthly live streams, downloadable projects, a 20% discount on all books, and more!

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.