Skip to content
This repository was archived by the owner on Nov 17, 2022. It is now read-only.

Commit f27933a

Browse files
committed
docs: update & improve iOS app extensions article
1 parent b714726 commit f27933a

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed
Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
---
22
title: iOS App Extensions
3-
description: iOS App extensions give users access to the app’s functionality and content throughout iOS. The App extensions provides options for interacting with other applications and enabled the user to access the app’s features without having to open it!
4-
position: 200
3+
description: iOS App extensions give users access to the app’s functionality and content throughout iOS. The App extensions provide options for interacting with other applications and enabled the user to access the app’s features without having to open it!
4+
position: 100
55
slug: ios-app-extensions
66
---
77

88
# iOS App Extensions
99

10-
iOS App extensions give users access to the app’s functionality and content throughout iOS. The App extensions provide options for interacting with other applications and enabled the user to access the app’s features without having to open it! As of the current latest version of XCode there over 25 different App Extensions templates. They cover functionalities like sharing, photo editing, file system access, widgets, custom notifications, actions, custom keyboars and many more. Each extension is part of the app but also work independently of one another. For more details on the different types of iOS App Extensions refer to the official [Apple documentation](https://developer.apple.com/app-extensions/).
10+
iOS App extensions give users access to the app’s functionality and content throughout iOS. The App extensions provide options for interacting with other applications and enabled the user to access the app’s features without having to open it! As of the current latest version of XCode there over 25 different App Extensions templates. They cover functionalities like sharing, photo editing, file system access, widgets, custom notifications, actions, custom keyboards and many more. Each extension is part of the app but also work independently of one another. For more details on the different types of iOS App Extensions refer to the official [Apple documentation](https://developer.apple.com/app-extensions/).
1111

1212
## App Extensions in NativeScript
1313

14-
NativeScript CLI 5.3.0 introduced a built-in support for the iOS App Extensions. While the extension itself should be created and developed via Xcode (using Objective-C), the produced files can be integrated in existing NativeScript app by using a plugin (that contains the extension) or directly by introducing the extension fule in folder special folder `<project-name>/App_Resources/iOS/extensions`. The following sections will describe the steps needed to integrate the **created** App Extension into your existing NativeScript application.
14+
NativeScript CLI 5.3.0 introduced built-in support for the iOS App Extensions. While the extension itself should be created and developed via Xcode (using Objective-C), the produced files can be integrated into existing NativeScript app by using a plugin (that contains the extension) or directly by introducing the extension file in folder particular folder `<project-name>/App_Resources/iOS/extensions`. The following sections describe the steps needed to integrate the **created** App Extension into your existing NativeScript application.
1515

1616

1717
### Adding App Extension in Existing Application
1818

1919
Prerequisites
2020

21-
- The created App Extensions (**add link here**)
22-
- Existing NativeScript applicaiton. For testing purposes, you can build base application using the `create` command
21+
- The created App Extensions (**add a link here**)
22+
- Existing NativeScript application. For testing purposes, you can build a base application using the `create` command
2323

2424
```
2525
tns create today-extension --tsc
@@ -29,9 +29,9 @@ Steps to include the App Extension
2929

3030
1. Open `<project-name>/app/App_Resources/iOS/` and create folder named `extensions` (**add link here**)
3131

32-
2. In the `extensions` folder paste the main folder that contains the extension files. For example, paste the `TestExtension` folder containg all the extension files. (**add link here**)
32+
2. In the `extensions` folder paste the main folder that contains the extension files. For example, paste the `TestExtension` folder containing all the extension files. (**add link here**)
3333

34-
3. In the `TestExtension` folder (where the extension files resides), create a file called `extension.json`. This configuration file describes the SDK frameworks used in the extension (via `frameworks` key) and the optional image resources used for extension icon (via `assetcatalogCompilerAppiconName` key).
34+
3. In the `TestExtension` folder (where the extension files reside), create a file called `extension.json`. This configuration file describes the SDK frameworks used in the extension (via `frameworks` key) and the optional image resources used for extension icon (via `assetcatalogCompilerAppiconName` key).
3535

3636
For example:
3737
```JSON
@@ -46,11 +46,11 @@ Where:
4646
- `frameworks` key - the value is an array of framework names.
4747
- `assetcatalogCompilerAppiconName` key - the value is the icon file name located in `.xcassets` catalog with `AppIconExtension.appiconset` inside the extension folder.
4848

49-
4. Create the applicaiton group.
49+
4. Create an application group.
5050

51-
In the common cases, the App Extensions will be used to pass/receive data and actions from and to your iOS application. In iOS to enable this functinality, both the application and the App Extension must be part of the same [**application group**](https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_security_application-groups?language=objc).
51+
In typical cases, the App Extensions are used to pass/receive data and actions from and to your iOS application. In iOS to enable this functionality, both the application and the App Extension must be part of the same [**application group**](https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_security_application-groups?language=objc).
5252

53-
Example for creating same group for both the extension and the application
53+
Example for creating the same group for both the extension and the application
5454

5555
- Create `TestExtension.entitlments` file inside `TestExtension` folder and add the specific group.
5656
```plist
@@ -80,8 +80,8 @@ Example for creating same group for both the extension and the application
8080
</plist>
8181
```
8282

83-
5. Create a clean build (remove `platforms` folder) and you extension is good to go.
83+
5. Create a clean build (remove `platforms` folder), and your extension is good to go.
8484

85-
Sample project demonstrating the above can be found here (**add link here**).
85+
A sample project demonstrating the above can be found here (**add a link here**).
8686

8787
### Adding App Extension in Plugin

0 commit comments

Comments
 (0)