Please carefully read this guide in order to fully configure this template, and remember to test it on a Real Device – the Emulator may fail.
This template has native Apple Swift code, so you can edit it only with Xcode running on a Mac computer. If you don’t have it, download it for free on the Mac App Store.
Info.plist
file – you can find it in the files list on the left-side panel – and set the text you wish in the Value
column of the Privacy rows.Main.storyboard
and you can find it in the list of file that is shown in left-side panel of the Xcode window.Assets.xcassets
folder.
let APP_NAME = "Snapback"
let ADMOB_INTERSTITIAL_UNIT_ID = "ca-app-pub-3940256099942544/1033173712"
You also have to replace the string into Info.plist
with your own App ID:#
symbol. The main color of the app and some UI will be affected by your change:
let MAIN_COLOR = hexValue(hex: "#23A0F1")
.ttf
or .otf
font file into the left-side panel in Xcode and click the Finish button in the popup that will show up: // ------------------------------------------------
// MARK: - LIST OF CAMERAS
// ------------------------------------------------
let listOfCameras = [
"Leika Day__Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation.", // Cam1
"Icy Night__Dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.", // Cam2
"Blacky__Consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.", // Cam3
"Tooner__Adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Lorem ipsum.", // Cam4
"Pink Blink__Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Adipiscing elit, ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.", // Cam5
"Blurry__Do eiusmod tempor incididunt ut labore et dolore magna aliqua. Adipiscing elit, so ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.", // Cam6
"Vintage__Eiusmod tempor incididunt do ut labore et dolore magna aliqua. Adipiscing elit, so ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.", // Cam7
"Purple Rain__Tempor incididunt do ut labore et dolore magna aliqua. Adipiscing elit, so ut enim ad minim veniam, quis nostrud exercitation ullamco amet laboris nisi ut aliquip ex ea commodo consequat.", // Cam8
"Red Room__Tempor incididunt do ut labore et dolore magna aliqua. Adipiscing elit, so ut enim ad minim veniam, quis nostrud exercitation ullamco amet laboris nisi ut aliquip ex ea commodo consequat.", // Cam9
"Dark Sketch__Tempor incididunt do ut labore et dolore magna aliqua. Adipiscing elit, so ut enim ad minim veniam, quis nostrud exercitation ullamco amet laboris nisi ut aliquip ex ea commodo consequat.", // Cam10
// YOU CAN ADD NEW CAMERA NAMES AND DESCRIPTION HERE...
]
// ------------------------------------------------
// MARK: - LIST OF CAMERA BKG COLORS
// ------------------------------------------------
let cameraColors = [
hexValue(hex: "#ADAFB4"), // Cam1
hexValue(hex: "#66A7CF"), // Cam2
hexValue(hex: "#1E2329"), // Cam3
hexValue(hex: "#48CFAE"), // Cam4
hexValue(hex: "#FFADCB"), // Cam5
hexValue(hex: "#46455F"), // Cam6
hexValue(hex: "#C28957"), // Cam7
hexValue(hex: "#754CC3"), // Cam8
hexValue(hex: "#ED3326"), // Cam9
hexValue(hex: "#6E907B"), // Cam10
// ADD NEW CAMERA COLORS HERE...
]
As you can see in the first array – listOfCameras
– the Name and Description strings are separated by __
, so if you want to change the name of a camera, replace th text before the __
with your own short name. For the description, simply replace the text after __
.listOfCameras
array and change its name into “My Camera”, and its description into something like “This Camera is pretty cool, it will make feel like you’ve jumped back into the past!, then you can edit the first array’s like this:
"My Camera__This Camera is pretty cool, it will make feel like you've jumped back into the past!", // Cam1
In case you also want to change its background color, just replace the existing HEX value of the first item in the cameraColors array into the one you wish:
hexValue(hex: "#ADAFB4"), // Cam1
Now enter the MainCamera.swift file and scroll down until you find this switch case:
case 0:
saturationFlt.saturation = 0.5
camera --> saturationFlt --> vignetteFlt --> renderView
break
This app comes with a few pre-defined GPUImage2 filters, so you can get the complete reference on the official GitHub page of GPUImage2: https://github.com/BradLarson/GPUImage2case 0
above as you wish, based on the GPUImage2 guide. // YOU CAN ADD NEW CAMERA NAMES AND DESCRIPTION HERE...
- Edit it as you wish (refer to the Edit Cameras paragraph above). // ADD NEW CAMERA COLORS HERE...
- Edit its HEX value as you wish (refer to the Edit Cameras paragraph above). // YOU MAY ADD NEW CAMERAS HERE...
- Create your new photo filter based on the GPUImage2 guide on GitHub, also check the existing cases just to have one more reference cam11
cam11_preview1
cam11_preview2
- Now place the 3x and 2x images of your iPhone screenshot in the cam11 Image Setcam11_preview1
and cam11_preview2
image Setsphoto_frame
.photo_frame
images you have collected:
let PHOTO_FRAMES_NUMBER = 8
let IAP_PRODUCT_ID = "com.snapback.pro"
You’re done with setting up In-App Purchase now, so you can run your app and test it out with your Sandbox account. You should be already logged in with your Sandbox account in the Settings -> iTunes & App Stores section of your device -> SANDBOX ACCOUNT: // MARK: - TABLES & COLUMNS NAMES
fireInterstitialAd;
Xcode will show you a list of Swift files where such code is located.