CocoaPods trunk is moving to be read-only. Read more on the blog, there are 19 months to go.

TacirlerSDK_DOB_iOS 2.1.3

TacirlerSDK_DOB_iOS 2.1.3

Maintained by Yasin Köker, Mustafa Arda Ayden.



 
Depends on:
SwiftyJSON>= 0
OpenSSL-Universal= 1.1.180
BulletinBoard>= 0
JitsiMeetSDK~> 5.0.0
Socket.IO-Client-Swift>= 0
 

  • By

TacirlerSDK_DOB_iOS

pod - 0.1.0

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 add Near 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 to dismiss the SDK. Also, when cycle ends, home button is to dismiss 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 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

  1. Verification with Place of Residence

QR Code that is on the place of residence form can be scanned.
  1. Verification with Address No from E-devlet

Client Information Screen

Video Call Screens

Result Screens

Application failed

Application succeded

Author

Papilon Savunma