Customization
Core
Configure the shared colors, typography, buttons, logo, and loading UI for Autentikar SDK.
Shared visual theme
AutentikarCoreCustomization defines the base visual language used by the primary SDK flows. Its component configurations cover:
TitleTextCaptionFooterTextButtonConfirmInstructionsLoadingView
Apply this configuration once through AutentikarManager; modules that inherit Core styling then use the same visual foundation.
iOS
MainActivity.swift
let custom = AutentikarCoreCustomization()
custom.backgroundColor = .black
custom.title.color = .white
custom.button.activeColor = .blue
AutentikarManager.shared.setCustomization(custom)
Custom loading view
Starting with Core 1.0.11, loadingView accepts either a SwiftUI or UIKit provider.
MainActivity.swift
// SwiftUI
let custom = AutentikarCoreCustomization()
custom.loadingView = AutentikarSwiftUILoadingProvider {
ProgressView()
.tint(.blue)
.scaleEffect(2)
}
AutentikarManager.shared.setCustomization(custom)
MainActivity.swift
// UIKit
let custom = AutentikarCoreCustomization()
let spinner = UIActivityIndicatorView(style: .large)
spinner.startAnimating()
spinner.color = .red
custom.loadingView = AutentikarUIKitLoadingProvider(view: spinner)
AutentikarManager.shared.setCustomization(custom)
Android
MainActivity.kt
import androidx.core.graphics.toColorInt
val custom = AutentikarCoreCustomization()
custom.backgroundColor = "#E84E1A".toColorInt()
custom.title.color = "#E84E1A".toColorInt()
custom.button.activeColor = "#E84E1A".toColorInt()
AutentikarManager.setCustomization(custom)
Custom loading view
Starting with Core 1.0.15, loadingView accepts an Android View.
MainActivity.kt
val custom = AutentikarCoreCustomization()
custom.loadingView = ProgressBar(this).apply {
isIndeterminate = true
indeterminateTintList =
android.content.res.ColorStateList.valueOf(Color.RED)
}
AutentikarManager.setCustomization(custom)
Localized content
Visual customization and text customization are independent. Use the platform localization files to replace user-facing copy without hard-coding strings in the customization object: