Skip to content

Commit 76fcf05

Browse files
committed
Update README.md
1 parent 536e06a commit 76fcf05

File tree

1 file changed

+15
-18
lines changed

1 file changed

+15
-18
lines changed

README.md

+15-18
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,20 @@ $ pod install
105105

106106
### Setup
107107

108-
Include the following lines in your application Info.plist:
108+
[Generate an API key](https://www.pixelsdk.com/dashboard/api-keys/) and specify it in your `application(_, didFinishLaunchingWithOptions:)` of your App Delegate. The following [pricing options](https://www.pixelsdk.com/#pricing) are available for your API key. Keep your API key private.
109+
110+
```swift
111+
import PixelSDK
112+
113+
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
114+
115+
PixelSDK.setup("YOUR API KEY")
116+
117+
return true
118+
}
119+
```
120+
121+
Include the following lines in your application `Info.plist`:
109122

110123
```xml
111124
<key>NSPhotoLibraryUsageDescription</key>
@@ -115,14 +128,11 @@ Include the following lines in your application Info.plist:
115128
<key>NSCameraUsageDescription</key>
116129
<string>Camera access is needed so you can take photos.</string>
117130
```
118-
119-
Import PixelSDK into the file you are working on.
131+
Present the SDK in response to a user action, for example, clicking a button. The default primary filters and adjustment filters will be used. The SDK will support both photo and video of any dimension with access to both the camera and library.
120132

121133
```swift
122134
import PixelSDK
123135
```
124-
125-
Present the SDK in response to a user action, for example, clicking a button. The default primary filters and adjustment filters will be used. The SDK will support both photo and video of any dimension with access to both the camera and library.
126136
```swift
127137
let container = ContainerController()
128138
container.editControllerDelegate = self
@@ -145,19 +155,6 @@ extension ViewController: EditControllerDelegate {
145155
}
146156
```
147157

148-
[Generate an API key](https://www.pixelsdk.com/dashboard/api-keys/) and specify it in your `application(_, didFinishLaunchingWithOptions:)` of your App Delegate. The following [pricing options](https://www.pixelsdk.com/#pricing) are available for your API key. Keep your API key private.
149-
150-
```swift
151-
import PixelSDK
152-
153-
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
154-
155-
PixelSDK.setup("YOUR API KEY")
156-
157-
return true
158-
}
159-
```
160-
161158
Optionally, specify a maximum video duration. The default maximum video duration is 80 seconds.
162159

163160
```swift

0 commit comments

Comments
 (0)