Apple’s WidgetKit update lets developers build for the Lock Screen and Watch with the same code

Apple’s WidgetKit update lets developers build for the Lock Screen and Watch with the same code

2 years ago
Anonymous $dy9SWuvIkX

https://techcrunch.com/2022/06/06/apples-widgetkit-update-lets-developers-build-for-the-lock-screen-and-watch-with-the-same-code/

At a developer briefing following Apple’s keynote address at its Worldwide Developer Conference this afternoon, the company went into more detail about the different types of widgets developers can now build for the iOS 16 Lock Screen. Inspired by the Apple Watch’s complications, Apple said these new widgets can help developers leverage key information from their app and display it where people can view it at a glance. Notably, all these Lock Screen widgets will work on both iOS and watchOS because, starting with watchOS 9, complications will also be powered by WidgetKit.

That means, for the first time, developers will be able to use the same code to generate glanceable information on both platforms, where the differences between platforms are handled automatically, Apple noted. That is, the widgets will be created using the appropriate system fonts by default, and the Lock Screen widgets will be tinted for maximum legibility.