TacirlerSDK_DOB_iOS-test
Requirements
- +iOS 13.0
Installation
TacirlerSDK is available through CocoaPods. To install it, simply add the following lines to your Podfile:
use_frameworks!
platform :ios, '13.0'
target 'YOUR-TARGET-NAME' do
pod 'TacirlerSDK_DOB_iOS-test'
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES'
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
end
end
end
Configuration
- In target app select
Signing & Capabilities
tab and click+Capability
button and addNear Field Communication Tag Reading
capability. - Add your Info.plist file necessary permissions;
<!--
FOR NFC
-->
<key>com.apple.developer.nfc.readersession.iso7816.select-identifiers</key>
<array>
<string>A0000002471001</string>
</array>
<key>NFCReaderUsageDescription</key>
<string>Permission string</string>
<!--
FOR Camera
-->
<key>NSCameraUsageDescription</key>
<string>Permission string</string>
<key>NSMicrophoneUsageDescription</key>
<string>Permission string</string>
- Make sure you have these lines in your
.entitlements
file;
<dict>
<key>com.apple.developer.nfc.readersession.formats</key>
<array>
<string>TAG</string>
</array>
</dict>
Example usage with customization options
import UIKit
import TacirlerSDK
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Perform necessary tasks in case of memory shortage here.
}
@IBAction func clicked(_ sender: Any) {
// Customize your theme settings
// if you comment out this section it will be show the default app color theme in your device/simulator.
let customTheme = SDKConfiguration(
backgroundColor: UIColor.lightGray,
contentViewBackgroundColor: UIColor.cyan,
buttonEnabledBackgroundColor: UIColor.green,
buttonDisabledBackgroundColor: UIColor.red,
buttonTextColor: UIColor.purple,
placeHolderTextColor: UIColor.brown,
borderColor: UIColor.cyan,
tintColor: UIColor.purple,
iconColor: UIColor.orange,
checkBoxColor: UIColor.brown,
viewControllerTitleColor: UIColor.red,
logoImageName: "logo3",
fontType: .aguafinaScriptRegular
)
// Set the theme through SDKConfigManager
SDKConfigManager.shared.sdkConfiguration = customTheme
// Create TacirlerSDKViewController
let vc = TacirlerSDKViewController()
vc.authorizeToken(
// put your token and license id in here
// if you don't available or lost it contact with:
// [email protected]
inputToken: "YOUR_TOKEN",
licenseID: "YOUR_LICENSE_ID"
)
// Present TacirlerSDKViewController modally
vc.modalTransitionStyle = .coverVertical
vc.modalPresentationStyle = .fullScreen
present(vc, animated: true)
}
}
Important Notes
If you are using XCode version 14.3.1 for your development, you can directly pull and use the updated SDK with a 'pod update' command.
However, if you have upgraded to XCode version 15.0, you may encounter the following error when building after 'pod update':
DT_TOOLCHAIN_DIR cannot be used to evaluate LIBRARY_SEARCH_PATHS, use TOOLCHAIN_DIR instead
Until Apple or CocoaPods releases a new update related to this issue, as a temporary solution after every 'pod update,' please follow these steps in the terminal inside your project folder: Run the following script:
find . -name "*.xcconfig" -type f -exec grep -l 'DT_TOOLCHAIN_DIR' {} \; | while IFS= read -r file; do sed -i '' 's/DT_TOOLCHAIN_DIR/TOOLCHAIN_DIR/g' "$file"; done
Then, reopen the project and build it again. After this step, you may encounter a runtime error like the following:
Sandbox: rsync(35790) deny(1) file-write-create
For that, you can follow these steps:
Open the Xcode project.
Click on the project name in the left sidebar to open the project settings.
Select the target you want to check in the "Targets" section.
Click on the "Build Settings" tab.
In the search bar, type "ENABLE_USER_SCRIPT_SANDBOXING."
If the value of ENABLE_USER_SCRIPT_SANDBOXING is set to "No," then it is disabled. If it is set to "Yes," then it is enabled.
SDK Flow
KVKK Approval Screen User needs to check both checkmark to proceed.
KVKK Policy and Commercial and Electronic Message Screens
MASAK Statement Screen
Daily and Monthly Notifications Screen User needs to check checkmark to proceed.
NFC Availability Check Screen In this screen NFC Availability control should be done, otherwise, user cannot proceed.
Form Screen User needs to fill the form to proceed
Questionnaire Screen User needs to choose one option to proceed. If they choose other or "Tacirler Investment Personal", user needs to fill text field.
Phone Number Screen
SMS OTP Code Screen
MRZ Scanner Screen TR Identity card should be shown to the camera to proceed.
NFC Reader Screen TR Identity card should be shown to backside of the phone to proceed.
Information Check Screen
Selfie Screen
Selfie Check Screens
Address Verification Screens QR Code that is on the place of residence form can be scanned.
Client Information Screen
Video Call Screens
Result Screens Application failed Application succeded
Author
Papilon Savunma