5bc81d5b3b
iOS SwiftUI app with Supabase auth/realtime, Node.js backend, Docker/Supabase self-hosted infrastructure, and APNs scheduler. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
26 lines
592 B
Swift
26 lines
592 B
Swift
import Foundation
|
|
|
|
struct User: Identifiable, Codable, Equatable {
|
|
let id: String
|
|
let username: String
|
|
var displayName: String
|
|
var bio: String?
|
|
var avatarURL: URL?
|
|
var followerCount: Int
|
|
var followingCount: Int
|
|
var postCount: Int
|
|
var isFollowing: Bool
|
|
|
|
static let preview = User(
|
|
id: "preview",
|
|
username: "nightowl",
|
|
displayName: "Night Owl",
|
|
bio: "3 Uhr ist meine goldene Stunde",
|
|
avatarURL: nil,
|
|
followerCount: 142,
|
|
followingCount: 89,
|
|
postCount: 37,
|
|
isFollowing: false
|
|
)
|
|
}
|