Skip to content

Instantly share code, notes, and snippets.

View ArtCC's full-sized avatar
🧑‍💻
Developing software and games! 🙃

Arturo Carretero Calvo ArtCC

🧑‍💻
Developing software and games! 🙃
View GitHub Profile
@ArtCC
ArtCC / VoticeTexts.swift
Last active October 28, 2025 10:01
If you use an .xcstrings file in your project, you can use this class to translate the Votice SDK into the languages you need. Then use it in the SDK configuration; check the documentation.
// MARK: - VoticeTextsProtocol
struct VoticeTexts: VoticeTextsProtocol {
// MARK: - General
let cancel = String(localized: "Cancel")
let error = String(localized: "Error")
let ok = String(localized: "Ok")
let submit = String(localized: "Submit")
let optional = String(localized: "Optional")
@ArtCC
ArtCC / AnalyzeView.swift
Created August 13, 2025 15:01
AIProxy: analyze image request
//
// AnalyzeView.swift
//
// Created by Arturo Carretero Calvo on 13/8/25.
// Copyright © 2025 ArtCC. All rights reserved.
//
import AIProxy
import PhotosUI
import SwiftUI
@ArtCC
ArtCC / BiometricManager.swift
Last active April 23, 2025 11:28
BiometricManager (Swift 6 compatibility)
import LocalAuthentication
@MainActor
protocol BiometricManagerProtocol: Sendable {
func biometricType() -> BiometricManager.BiometricType
func isBiometricAvailable() -> Bool
func authenticate(reason: String?) async throws -> Bool
func updateLoginReason(_ newReason: String)
}