Post

Replies

Boosts

Views

Activity

Reply to WatchOS 8 support when migrating to widgetkit
I am migrating a WatchKit complication that I support back to WatchOS 6.0 to WidgetKit. How do I support ClockKit in WatchOS prior to 9.0 and WidgetKit in 9.0 and newer? I can't seem to get my WidgetKit Extension to compile is I have WatchOS support earlier than 9.0. The compiler complains that things like "Timeline" doesn't exist prior to WatchOS 9.0, and I don't know how to conditional that since it is a runtime decision. (can't if #available around a class definition.) I'm sure it is something simple I am missing.
Topic: App & System Services SubTopic: General Tags:
Dec ’22
Reply to WatchOS 8 support when migrating to widgetkit
I am migrating a WatchKit complication that I support back to WatchOS 6.0 to WidgetKit. How do I support ClockKit in WatchOS prior to 9.0 and WidgetKit in 9.0 and newer? I can't seem to get my WidgetKit Extension to compile is I have WatchOS support earlier than 9.0. The compiler complains that things like "Timeline" doesn't exist prior to WatchOS 9.0, and I don't know how to conditional that since it is a runtime decision. (can't if #available around a class definition.) I'm sure it is something simple I am missing.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Dec ’22