How to make the user be offered different widgets for lock and home screen

Hello!

New families (.accessoryInline, .accessoryCircular, .accessoryRectangular) can work on both lock and home screens. But I need a strict separation of widgets for each screen. Have no idea how to construct condition.

  • Sorry, but this is my inattention - new families only work on a closed screen.

Add a Comment

Replies

Yeah, you've got it; the "accessory" ones are only for the Lock Screen. This is how I've set mine up:

#if os(watchOS)
		.supportedFamilies([.accessoryCircular, .accessoryInline, .accessoryRectangular, .accessoryCorner])
#else
		.supportedFamilies([.accessoryCircular, .accessoryInline, .accessoryRectangular, .systemSmall, .systemMedium])
#endif