So I've been tasked with finding a way to make a trigger repeat only on certain days of the week. After inspecting HMTimerTrigger I was convinced this couldn't be done. The recurrence property only lets you fire a timer every day, every week, every month etc, but not be able to do custom patterns like only Saturday and Sunday for example.
I was then told that the built in iOS Home app lets you select days of the week to repeat a timer on and sure enough it does. However after I create a repeat timer object in the Home app, then open up that Trigger in my own app to inspect it's properties, I can't see any repeat information on it. recurrence, recurrencCalendar, and timeZone are all nil. In fact the only data in the trigger to indicate it has a custom recurrence pattern is the name of the trigger. What is going on? Is the Home app using private data to set patterns we don't have access to, or is HomeKit actually looking at the name of the trigger to determine when to run it. I'm very confused and could use some help with this.