Cotton code
21 lines · 405 B · SwiftRaw
import CottonKitimport Foundationimport Observation@MainActor@Observablepublic final class ChatExportHandoff {  public private(set) var staged: StagedShare?  public init() {}  public func hold(_ share: StagedShare?) {    staged = share  }  /// Once: the screen that takes it owns the file from here.  public func take() -> StagedShare? {    defer { staged = nil }    return staged  }}