Skip to content

Instantly share code, notes, and snippets.

struct CircularLoaderView: View {
struct Configuration {
var radius: CGFloat
var strokeWidth: CGFloat
var strokeColor: Color
var animationDuration: Double
var rotationDuration: Double
}
var configuration: Configuration
@kmarcell
kmarcell / ConcernedKeychainAccessor.swift
Created April 15, 2024 08:54
SecurelyStored a Swift property wrapper for Codable items stored in Keychain
import Foundation
public class ConcernedKeychainAccessor: KeychainAccessor {
override public func storeData<T: Codable>(_ object: T, forKey key: String) -> OSStatus {
let status = super.storeData(object, forKey: key)
if status != errSecSuccess {
NotificationCenter.default.post(name: NSNotification.Name("KeychainAccessorError"), object: nil)
}
return status
}