Creating an iOS Widget for your Wallet app

Creating an iOS Widget for your Wallet app

Widgets are a powerful extension for your iPhone, iPad and Mac apps and is a perfect way to extend and personalize your iPhone home screen with new visual functionality. We shouldn’t need to interact or do anything more than take a quick peek to get most value out of our widget. The content of the widget is in the focus, and we don’t need to tap any buttons or even spend time trying to figure out a complicated UI (widgets are not mini apps). Widgets will be available in iOS 14 or later and macOS 11 and later.

A widget is just a SwiftUI view, so it’s the same declarative code that generates gorgeous native view on iOS, iPadOS and macOS. Widgets does not support animations or custom interactions but does support deep linking with the help of the Link modifier.

[…]

Please note that refresh limit is not the same when debugging your widget in Xcode, so please verify your widget behaves correctly outside the Xcode simulators and test the widget on a real physical device.

[…]