How I Built an iPhone App That Unlocks Screen Time With Exercise
This story was originally published on HackerNoon at: https://hackernoon.com/how-i-built-an-iphone-app-that-unlocks-screen-time-with-exercise.
Counting push-ups from Vision body pose with one state machine, and what Screen Time's shields, callbacks and 20-activity limit really allow.
Check more stories related to programming at: https://hackernoon.com/c/programming. You can also check exclusive content about #ios, #swift, #computer-vision, #screen-time, #iphone-app-blocker, #swiftui-development, #exercise-based-app-unlock, #iphone-fitness-tracking, and more.
This story was written by: @treamz. Learn more about this writer by checking @treamz's about page, and for more stories, please visit hackernoon.com.
An iPhone app blocker that unlocks for exercise: Vision body pose reduces each exercise to one number, one hysteresis state machine counts push-ups, squats, sit-ups, pull-ups and jumping jacks, and Apple's Screen Time API (shields, DeviceActivity callbacks, a 20-activity limit) decides what a third-party app can actually lock and when.
You May Also Like
Computer Club
Computer Club - Freddy & Smollie

AI News Daily
brief.news

Theo - t3․gg
Theo - t3․gg

Jack Hopkins
Jack Hopkins

Macworld Podcast
Foundry

The AI Daily Brief: Artificial Intelligence News and Analysis
Nathaniel Whittemore

Machine Learning Street Talk
Machine Learning Podcast

Elon Musk Podcast
Stage Zero

The Changelog: Software Development, Open Source
Changelog Media

Changelog Master Feed
Changelog Media
Community discussion