Added demo mode for app review
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user