posts (Board/BoardManager.swift)

bitchat · bitchat/Services/Board/BoardManager.swift · swift · Unlicense
realtime, chat

BoardManager.swift bitchat This is free and unencumbered software released into the public domain. For more information, see <https://unlicense.org>

// Source: https://github.com/permissionlesstech/bitchat | License: Unlicense
// Provided via justclaw.it.com; keep this notice with the code.
//
// BoardManager.swift
// bitchat
//
// This is free and unencumbered software released into the public domain.
// For more information, see <https://unlicense.org>
//

import BitLogger
import Combine
import Foundation

/// UI-facing coordinator for the bulletin board: builds and signs posts and
/// tombstones with the device's Noise signing key, hands them to the mesh
/// transport, and mirrors the store's live posts for SwiftUI.
@MainActor
final class BoardManager: ObservableObject {
    /// Live posts across all boards, newest state from the store.
    @Published private(set) var posts: [BoardPostPacket] = []

    private let transport: Transpo

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key