WidgetExamples
A demo project showing different types of Widgets created with SwiftUI and WidgetKit.
Install / Use
/learn @pawello2222/WidgetExamplesREADME
Widget Examples
A demo project showing different types of Widgets created with SwiftUI and WidgetKit.
<details> <summary> <b>Table of Contents</b> </summary> </details>Basic widgets <a name="basic"></a>
<table> <tr> <th align="center" width="25%"> <a href="./Widgets/AppGroupWidget">App Group</a> </th> <th align="center" width="25%"> <a href="./Widgets/CoreDataWidget">Core Data</a> </th> <th align="center" width="25%"> <a href="./Widgets/CountdownWidget">Countdown</a> </th> <th align="center" width="25%"> <a href="./Widgets/DeepLinkWidget">Deep Link</a> </th> </tr> <tr> <td align="center"> <a href="./Widgets/AppGroupWidget"> <img src="./.resources/Screenshots/AppGroupWidget.png" alt="App Group Widget"> </a> </td> <td align="center"> <a href="./Widgets/CoreDataWidget"> <img src="./.resources/Screenshots/CoreDataWidget.png" alt="Core Data Widget"> </a> </td> <td align="center"> <a href="./Widgets/CountdownWidget"> <img src="./.resources/Screenshots/CountdownWidget.png" alt="Countdown Widget"> </a> </td> <td align="center"> <a href="./Widgets/DeepLinkWidget"> <img src="./.resources/Screenshots/DeepLinkWidget.png" alt="Deep Link Widget"> </a> </td> </tr> <tr> <th align="center"> <a href="./Widgets/DigitalClockWidget">Digital Clock</a> </th> <th align="center" colspan="2"> <a href="./Widgets/LiveActivityWidget">Live Activity</a> </th> <th align="center"> <a href="./Widgets/EnvironmentWidget">Environment</a> </th> </tr> <tr> <td align="center"> <a href="./Widgets/DigitalClockWidget"> <img src="./.resources/Screenshots/DigitalClockWidget.png" alt="Digital Clock Widget"> </a> </td> <td align="center" colspan="2"> <a href="./Widgets/LiveActivityWidget"> <img src="./.resources/Screenshots/LiveActivityWidget.png" alt="Live Activity Widget"> </a> </td> <td align="center"> <a href="./Widgets/EnvironmentWidget"> <img src="./.resources/Screenshots/EnvironmentWidget.png" alt="Environment Widget"> </a> </td> </tr> <tr> <th align="center"> <a href="./Widgets/LockScreenWidget">Lock Screen</a> </th> <th align="center"> <a href="./Widgets/NetworkWidget">Network</a> </th> <th align="center"> <a href="./Widgets/SharedViewWidget">Shared View</a> </th> <th align="center"> <a href="./Widgets/SwiftDataWidget">SwiftData</a> </th> </tr> <tr> <td align="center"> <a href="./Widgets/LockScreenWidget"> <img src="./.resources/Screenshots/LockScreenWidget.png" alt="Lock Screen Widget"> </a> </td> <td align="center"> <a href="./Widgets/NetworkWidget"> <img src="./.resources/Screenshots/NetworkWidget.png" alt="Network Widget"> </a> </td> <td align="center"> <a href="./Widgets/SharedViewWidget"> <img src="./.resources/Screenshots/SharedViewWidget.png" alt="Shared View Widget"> </a> </td> <td align="center"> <a href="./Widgets/SwiftDataWidget"> <img src="./.resources/Screenshots/SwiftDataWidget.png" alt="SwiftData Widget"> </a> </td> </tr> <tr> <th align="center" width="25%"> <a href="./Widgets/URLImageWidget">URL Image</a> </th> <th align="center" width="25%"></th> <th align="center" width="25%"></th> <th align="center" width="25%"></th> </tr> <tr> <td align="center"> <a href="./Widgets/URLImageWidget"> <img src="./.resources/Screenshots/URLImageWidget.png" alt="URL Image Widget"> </a> </td> <td align="center"></td> <td align="center"></td> <td align="center"></td> </tr> </table>Intent widgets <a name="intent"></a>
The following widgets use Intents. Please refer to the documentation for a more detailed explanation.
<table> <tr> <th align="center"> <a href="./Widgets/AudioPlaybackWidget">Audio Playback</a> </th> <th align="center"> <a href="./Widgets/DynamicIntentWidget">Dynamic Intent</a> </th> <th align="center"> <a href="./Widgets/IntentWidget">Intent</a> </th> <th align="center"> <a href="./Widgets/InteractiveWidget">Interactive</a> </th> </tr> <tr> <td align="center"> <a href="./Widgets/AudioPlaybackWidget"> <img src="./.resources/Screenshots/AudioPlaybackWidget.png" alt="Audio Playback Widget"> </a> </td> <td align="center"> <a href="./Widgets/DynamicIntentWidget"> <img src="./.resources/Screenshots/DynamicIntentWidget.png" alt="Dynamic Intent Widget"> </a> </td> <td align="center"> <a href="./Widgets/IntentWidget"> <img src="./.resources/Screenshots/IntentWidget.png" alt="Intent Widget"> </a> </td> <td align="center"> <a href="./Widgets/InteractiveWidget"> <img src="./.resources/Screenshots/InteractiveWidget.png" alt="Interactive Widget"> </a> </td> </tr> </table>Unofficial widgets <a name="unofficial"></a>
The folowing widgets use private API. Please bear in mind that they don't necessarily have to pass the Apple review process and you use them at your own risk.
<table> <tr> <th align="center" width="25%"> <a href="./Widgets/AnalogClockWidget">Analog Clock</a> </th> <th align="center" width="25%"></th> <th align="center" width="25%"></th> <th align="center" width="25%"></th> </tr> <tr> <td align="center"> <a href="./Widgets/AnalogClockWidget"> <img src="./.resources/Screenshots/AnalogClockWidget.png" alt="Analog Clock Widget"> </a> </td> <td align="center"></td> <td align="center"></td> <td align="center"></td> </tr> </table>Installation <a name="installation"></a>
It is recommended to download the whole project to keep the configuration intact as some widgets depend on the App Group capability or integrate with the main App.
Versions
This project requires iOS 17.
You can also download releases for previous deployment targets:
License <a name="license"></a>
Widget Examples project is available under the MIT license. See the LICENSE file for more info.
