Knowing the UV index before heading outside only tells you part of the story. I built a shortcut for iPhone and iPad that estimates how much UV radiation exposure adds up during outdoor activities.
Pay attention to the UV Index
Pay attention to the UV IndexMy colleague Wesley Hilliard has been on a mission to fill as many data categories in Apple Health as possible using apps and automation. Logging the UV index proved particularly challenging without sharing personal information with a third-party app.
Wes eventually built an automation that records the current UV index whenever he starts an outdoor workout. Apple Health receives the measurement, but the automation doesn’t account for how long he’s been outside.
I wanted to see if Shortcuts could take exposure duration into account. It was also a good opportunity to experiment with the persistent storage features Apple introduced in iOS 27 and iPadOS 27.