SecureStorageSample/SharedPackage/Sources/SharedKit/Models/UserProfile.swift

15 lines
346 B
Swift

import Foundation
public nonisolated struct UserProfile: Codable, Sendable {
public static let storageKeyName = StorageKeyNames.userProfile
public let name: String
public let email: String
public let age: Int?
public let createdAt: Date
public var ageDescription: String {
age.map(String.init) ?? "n/a"
}
}