You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/guide/widgets-ios.md
+21-26Lines changed: 21 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ With NativeScript 8.9 CLI (`npm install -g nativescript`), you can create an iOS
12
12
$ ns widget ios
13
13
```
14
14
15
-
This will allow you to create a Home Screen Widget, a Live Activity on the lock screen or a combination of both.
15
+
This will allow you to create a Home Screen Widget, a Live Activity on the lock screen or a combination of both.
16
16
17
17
## ns widget ios
18
18
@@ -46,15 +46,15 @@ Followup steps:
46
46
47
47
Let's discuss each note by outlining everything that was generated:
48
48
49
-
-`App_Resources/iOS/app.entitlements`: Includes the App Groups capability for shared data between your app and widget. *If one doesn't exist, it will be created for you.*
49
+
-`App_Resources/iOS/app.entitlements`: Includes the App Groups capability for shared data between your app and widget. _If one doesn't exist, it will be created for you._
50
50
-`App_Resources/iOS/extensions/pizza/extension.json`: Xcode build configuration details. This is where additional frameworks, if desired, for your widget can also be included in the `frameworks` collection at the top.
51
51
-`App_Resources/iOS/extensions/pizza/Info.plist`: The widget's info property list.
52
52
-`App_Resources/iOS/extensions/pizza/pizza.entitlements`: Similar to the app.entitlements, this also includes the App Groups capability for shared data between your app and widget.
53
53
-`App_Resources/iOS/extensions/pizza/PizzaBundle.swift`: This allows different widget features to be bundled together. For example, when choosing a Live Activity with a Home Screen Widget, both will be listed as part of the widget bundle here.
54
54
-`App_Resources/iOS/extensions/pizza/PizzaHomeScreenWidget.swift`: The Home Screen Widget itself. This is where the view is defined as well as the [Timeline](https://developer.apple.com/documentation/widgetkit/timeline) which determines how data should be provided to the view. It comes already setup to use data from shared app/widget data which you can customize further.
55
55
-`App_Resources/iOS/extensions/pizza/PizzaLiveActivity.swift`: The Live Activity to show on the lock screen. The view is defined via `LockScreenView` and also provides example customizations to the iPhone [Dynamic Island](https://support.apple.com/guide/iphone/use-the-dynamic-island-iph28f50d10d/ios).
56
56
-`App_Resources/iOS/extensions/pizza/PrivacyInfo.xcprivacy`: The privacy policy for the widget. Refence documentation can be found [here](https://developer.apple.com/documentation/bundleresources/privacy-manifest-files).
57
-
-`App_Resources/iOS/extensions/provisioning.json`: The provisioning profile configured to use with the widget id. On first generation, a placeholder is inserted however you can update this value to the provision profile needed.
57
+
-`App_Resources/iOS/extensions/provisioning.json`: The provisioning profile configured to use with the widget id. On first generation, a placeholder is inserted however you can update this value to the provision profile needed.
58
58
59
59
::: tip Provisioning Profiles
60
60
`open ~/Library/Developer/Xcode/UserData/Provisioning\ Profiles` and sort by modified date; this will allow you to find the profile id auto generated by xcode for your widget.
@@ -74,21 +74,21 @@ Your projects `references.d.ts` are also annotated to include strong types for `
Widget extensions have been supported with NativeScript for several years. Prior to 8.9, they required a number of manual steps. We'll include the following resources for additional context:
0 commit comments