Added demo mode for app review

This commit is contained in:
2025-03-19 12:23:49 -06:00
parent bbad8d6948
commit dc17130468
5 changed files with 294 additions and 22 deletions

View File

@ -36,14 +36,25 @@ struct CodeUse: Codable, Identifiable, Sendable {
}
// User model
struct PDSUser: Identifiable, Hashable, Sendable {
var id: String // DID
var handle: String
var displayName: String
var description: String
var joinedAt: Date
var avatar: URL?
var isActive: Bool = true
class PDSUser: Identifiable, Hashable, Sendable, ObservableObject {
let id: String // DID
let joinedAt: Date
let avatar: URL?
@Published var handle: String
@Published var displayName: String
@Published var description: String
@Published var isActive: Bool = true
init(id: String, handle: String, displayName: String, description: String, joinedAt: Date, avatar: URL?, isActive: Bool = true) {
self.id = id
self.handle = handle
self.displayName = displayName
self.description = description
self.joinedAt = joinedAt
self.avatar = avatar
self.isActive = isActive
}
// Add Hashable conformance
func hash(into hasher: inout Hasher) {