Categories
apple design ios

Introducing iOS 14 WidgetKit With SwiftUI

Let’s learn to construct some widgets for our house display screen in a couple of mins

Anupam Chugh

Photo via Bagus Hernawan on Unsplash.

WWDC 2020 gave us a large number of improvements and updates, however the creation of the WidgetKit framework unarguably sticks out.

iOS 14 has offered a redesigned house display screen, with the inclusion of widgets being an enormous addition. Widgets don’t seem to be simply an eye-pleasing UI shortcut for our apps. They additionally assist in offering helpful data to the person now and again.

In many ways, they’re a calmer type of notification that will give you the most recent data from the apps (if the developer has opted to take action) with out intruding. Additionally, there’s a brand new Smart Stack function in iOS 14 that teams a collection of widgets that you’ll be able to swipe thru. Smart Stacks generally tend to give you the related widget on the most sensible via the use of on-device intelligence that takes under consideration the time of the day, location, and a few different attributes.

WidgetKit is constructed purely the use of SwiftUI, which opens unending alternatives for construction gorgeous widgets. It’s essential to notice than WidgetKit isn’t supposed to construct mini-apps.

Besides offering a Link button that allows you to set a deep-link URL to navigate to a specific a part of your application, you’ll be able to’t upload any animations or different interactions in widgets.