-
Notifications
You must be signed in to change notification settings - Fork 64
/
DefaultUI+Customization.swift
98 lines (83 loc) · 5.27 KB
/
DefaultUI+Customization.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
//
// DefaultUI+Customization.swift
//
// Copyright © 2024 Jumio Corporation. All rights reserved.
//
import UIKit
import Jumio
extension DefaultUI {
func customizeSDKColors() -> Jumio.Theme {
var customTheme = Jumio.Theme()
// IProov
customTheme.iProov.filterForegroundColor = Jumio.Theme.Value(.blue)
customTheme.iProov.filterBackgroundColor = Jumio.Theme.Value(.green)
customTheme.iProov.titleTextColor = Jumio.Theme.Value(.brown)
customTheme.iProov.closeButtonTintColor = Jumio.Theme.Value(.green)
customTheme.iProov.surroundColor = Jumio.Theme.Value(.gray)
customTheme.iProov.promptTextColor = Jumio.Theme.Value(.cyan)
customTheme.iProov.promptBackgroundColor = Jumio.Theme.Value(.yellow)
customTheme.iProov.genuinePresenceAssuranceReadyOvalStrokeColor = Jumio.Theme.Value(.purple)
customTheme.iProov.genuinePresenceAssuranceNotReadyOvalStrokeColor = Jumio.Theme.Value(.yellow)
customTheme.iProov.livenessAssuranceOvalStrokeColor = Jumio.Theme.Value(.cyan)
customTheme.iProov.livenessAssuranceCompletedOvalStrokeColor = Jumio.Theme.Value(.brown)
// Primary & Secondry Buttons
customTheme.primaryButton.background = Jumio.Theme.Value(light: .red, dark: .purple)
customTheme.primaryButton.backgroundPressed = Jumio.Theme.Value(light: .yellow, dark: .cyan)
customTheme.primaryButton.backgroundDisabled = Jumio.Theme.Value(light: .blue, dark: .magenta)
customTheme.primaryButton.foreground = Jumio.Theme.Value(light: .green, dark: .yellow)
customTheme.primaryButton.foregroundPressed = Jumio.Theme.Value(light: .black, dark: .white)
customTheme.primaryButton.foregroundDisabled = Jumio.Theme.Value(light: .darkGray, dark: .brown)
customTheme.secondaryButton.background = Jumio.Theme.Value(light: .purple, dark: .orange)
customTheme.secondaryButton.backgroundPressed = Jumio.Theme.Value(light: .cyan, dark: .yellow)
customTheme.secondaryButton.backgroundDisabled = Jumio.Theme.Value(light: .magenta, dark: .blue)
customTheme.secondaryButton.foreground = Jumio.Theme.Value(light: .yellow, dark: .green)
// Bubble, Circle and Selection Icon
customTheme.bubble.background = Jumio.Theme.Value(.magenta)
customTheme.bubble.foreground = Jumio.Theme.Value(.blue)
customTheme.bubble.backgroundSelected = Jumio.Theme.Value(.purple)
customTheme.bubble.outline = Jumio.Theme.Value(.red)
// Loading, Error
customTheme.loading.circlePlain = Jumio.Theme.Value(.yellow)
customTheme.loading.loadingCircleGradientStart = Jumio.Theme.Value(.purple)
customTheme.loading.loadingCircleGradientEnd = Jumio.Theme.Value(.red)
customTheme.loading.errorCircleGradientStart = Jumio.Theme.Value(.red)
customTheme.loading.errorCircleGradientEnd = Jumio.Theme.Value(.orange)
customTheme.loading.circleIcon = Jumio.Theme.Value(.purple)
// Scan Overlay
customTheme.scanOverlay.scanOverlay = Jumio.Theme.Value(.red)
customTheme.scanOverlay.scanBackground = Jumio.Theme.Value(.blue.withAlphaComponent(0.5))
customTheme.scanOverlay.livenessStroke = Jumio.Theme.Value(.yellow)
customTheme.scanOverlay.livenessStrokeAnimation = Jumio.Theme.Value(.red)
customTheme.scanOverlay.livenessStrokeAnimationCompleted = Jumio.Theme.Value(.orange)
// NFC
customTheme.nfc.passportCover = Jumio.Theme.Value(.red)
customTheme.nfc.passportPageDark = Jumio.Theme.Value(.blue)
customTheme.nfc.passportPageLight = Jumio.Theme.Value(.cyan)
customTheme.nfc.passportForeground = Jumio.Theme.Value(.yellow)
customTheme.nfc.phoneCover = Jumio.Theme.Value(.magenta)
// ScanView
customTheme.scanView.tooltipForeground = Jumio.Theme.Value(.yellow)
customTheme.scanView.tooltipBackground = Jumio.Theme.Value(.cyan)
customTheme.scanView.foreground = Jumio.Theme.Value(.red)
customTheme.scanView.darkForeground = Jumio.Theme.Value(.red)
customTheme.scanView.documentShutter = Jumio.Theme.Value(.purple)
customTheme.scanView.faceShutter = Jumio.Theme.Value(.blue)
// Search Bubble
customTheme.searchBubble.background = Jumio.Theme.Value(.yellow)
customTheme.searchBubble.foreground = Jumio.Theme.Value(.cyan)
// Confirmation
customTheme.confirmation.imageBackground = Jumio.Theme.Value(.magenta)
customTheme.confirmation.imageBackgroundBorder = Jumio.Theme.Value(.green)
customTheme.confirmation.indicatorActive = Jumio.Theme.Value(.blue)
customTheme.confirmation.indicatorDefault = Jumio.Theme.Value(.black)
// Scan Help
customTheme.scanHelp.faceAnimationForeground = Jumio.Theme.Value(.red)
// Global
customTheme.background = Jumio.Theme.Value(light: .orange, dark: .magenta)
customTheme.navigationIconColor = Jumio.Theme.Value(.blue)
customTheme.textForegroundColor = Jumio.Theme.Value(.green)
customTheme.primaryColor = Jumio.Theme.Value(light: .blue, dark: .blue)
customTheme.selectionIconForeground = Jumio.Theme.Value(.cyan)
return customTheme
}
}