SPB Git

Repository Public

IdentityConfiguration.swift 4.9 KB 112 lines swift

1// =============================================================================2//                  SP BOUCHER | SOFTWARE & RESEARCH3//             ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING4// =============================================================================5//6// PROJECT METADATA7// -----------------------------------------------------------------------------8// Project          : MacLustr Identity9// File             : sdk/swift/Sources/MacLustrIdentityUI/IdentityConfiguration.swift10// Module           : MacLustrIdentityUI11// Repository       : https://git.spboucher.ai/maclustr-identity12// Project Website  : https://identity.spboucher.ai13// Created          : 2026-12-0114// Last Modified    : 2026-12-0115//16// =============================================================================17// AUTHOR & PROFESSIONAL AFFILIATION18// =============================================================================19//20// Author           : Simon-Pierre Boucher21// Position         : Professor of Finance22// Institution      : Université du Québec en Outaouais (UQO)23// Department       : Département des sciences administratives24// Organization     : SP Boucher25//26// Website          : https://spboucher.ai27// Git              : https://git.spboucher.ai28//29// =============================================================================30// OFFICIAL CONTACT DIRECTORY31// =============================================================================32//33// General          : info@spboucher.ai34// Professional     : contact@spboucher.ai35// Direct           : simon@spboucher.ai36// Research         : research@spboucher.ai37// Development      : dev@spboucher.ai38// Support          : support@spboucher.ai39// Security/Admin   : admin@spboucher.ai40// Notifications    : notifications@spboucher.ai41//42// Preferred Contact: admin@spboucher.ai43//44// =============================================================================45// COPYRIGHT & INTELLECTUAL PROPERTY46// =============================================================================47//48// Copyright (c) 202649// Simon-Pierre Boucher50//51// All rights reserved where applicable.52//53// This file is governed by the applicable project license,54// copyright notices, institutional agreements and relevant law.55//56// Unless expressly authorized by the applicable license or57// rights holder, copying, redistribution, sublicensing,58// publication and commercial exploitation are not permitted.59//60// Existing third-party rights and notices remain unaffected.61//62// =============================================================================63// CONFIDENTIALITY & SECURITY64// =============================================================================65//66// Classification   : Public67// Distribution     : Public repository; use is governed by the project license68// Security Contact : admin@spboucher.ai69//70// Access to this source does not independently grant permission71// to redistribute or disclose confidential materials.72//73// Do not embed credentials, private keys, access tokens,74// certificates or confidential personal information.75//76// =============================================================================77// LICENSE & MAINTENANCE78// =============================================================================79//80// License          : None specified (no license file in this repository)81// Maintainer       : Simon-Pierre Boucher82// Technical Contact: dev@spboucher.ai83//84// =============================================================================85// END OF SP BOUCHER SOURCE HEADER86// =============================================================================8788// Options of the native flow.89import SwiftUI9091/// Options of `IdentityVerificationView`.92public struct IdentityConfiguration {93    /// Forces the language of the flow. By default it follows the session locale chosen by the backend.94    public var language: IdentityLanguage?95    /// Overrides the accent colour. By default the application's branding accent is used, then the system accent.96    public var accentColor: Color?97    /// Captures the document automatically when it is found, sharp, well lit and steady. The shutter stays available.98    public var automaticDocumentCapture = true99    /// Runs an on-device text recognition on the captured document, only to warn when the text looks unreadable.100    /// The recognised text is discarded immediately: it is never sent, stored or logged.101    public var documentTextQualityCheck = true102    /// Transport used for the API calls. Replace it only for tests.103    public var transport: IdentityTransport = URLSessionTransport()104    /// Automatic retries (network failure, 429, 5xx) and per-request deadlines of the API calls.105    public var retryPolicy: IdentityRetryPolicy = .default106107    public init(language: IdentityLanguage? = nil, accentColor: Color? = nil) {108        self.language = language109        self.accentColor = accentColor110    }111}112
Files main
Menu

Theme