TacirlerSDK_DOB_iOS
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'
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>
Usage
First import the SDK;
import TacirlerSDK
Then, create a view controller object to start cycle;
let vc = TacirlerSDKViewController()
Then, handover this view controller to a button. For example;
@objc func nextClicked() {
vc.modalTransitionStyle = .coverVertical
vc.modalPresentationStyle = .fullScreen
present(vc, animated: true)
}
x
buttons on the screen is todismiss
the SDK. Also, when cycle ends,home
button is todismiss
SDK.
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)
}
}
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 proceedQuestionnaire 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 succededAuthor
Papilon Savunma