Skip to content

How I built a UV exposure tracker with Apple Shortcuts in iPadOS 27

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.

Smartphone displaying a low UV index forecast beneath a bright sun icon with purple rays, illustrating sun exposure monitoring and safety information on the device screenPay attention to the UV Index

My 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.

Continue Reading on AppleInsider | Discuss on our Forums