Skip to content

Commit 4d04278

Browse files
authored
Merge pull request #101257 from rmca14/resolvevalwarns
Resolve master-to-live PR validation warnings
2 parents 2e563d1 + a1d696e commit 4d04278

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

articles/cognitive-services/immersive-reader/tutorial-ios-picture-immersive-reader.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,20 +70,14 @@ Subdomain => Immersive Reader resource subdomain (resource 'Name' if the reso
7070

7171
In the main project folder, which contains the ViewController.swift file, create a Swift class file called Constants.swift. Replace the class with the following code, adding in your values where applicable. Keep this file as a local file that only exists on your machine and be sure not to commit this file into source control, as it contains secrets that should not be made public. It is recommended that you do not keep secrets in your app. Instead, we recommend using a backend service to obtain the token, where the secrets can be kept outside of the app and off of the device. The backend API endpoint should be secured behind some form of authentication (for example, [OAuth](https://oauth.net/2/)) to prevent unauthorized users from obtaining tokens to use against your Immersive Reader service and billing; that work is beyond the scope of this tutorial.
7272

73-
[!code-swift[Constants](~/ImmersiveReaderSdk/iOS/samples/picture-to-immersive-reader-swift/picture-to-immersive-reader-swift/Constants.swift)]
74-
7573
## Set up the app to run without a storyboard
7674

7775
Open AppDelegate.swift and replace the file with the following code.
7876

79-
[!code-swift[AppDelegate](~/ImmersiveReaderSdk/iOS/samples/picture-to-immersive-reader-swift/picture-to-immersive-reader-swift/AppDelegate.swift)]
80-
8177
## Add functionality for taking and uploading photos
8278

8379
Rename ViewController.swift to PictureLaunchViewController.swift and replace the file with the following code.
8480

85-
[!code-swift[PictureLaunchViewController](~/ImmersiveReaderSdk/iOS/samples/picture-to-immersive-reader-swift/picture-to-immersive-reader-swift/PictureLaunchViewController.swift)]
86-
8781
## Build and run the app
8882

8983
Set the archive scheme in Xcode by selecting a simulator or device target.

0 commit comments

Comments
 (0)