Cotton code
26 lines · 829 B · SwiftRaw
// One answer in a panel Comms draws itself (Calls, Recordings, a chat's asks), out of the Senders file it was born in// (COMMS WITHOUT MAIL, 26 Nov 2026).#if os(iOS)import SwiftUI/// One answer in a panel Comms draws itself, as a `lookAsk` row draws it: the panel closes, then the act runs.struct ChatPanelChoice: View {    let choice: LookChoice    let font: Font    @Environment(\.closeCard) private var close    var body: some View {        Button {            close?()            choice.act()        } label: {            Text(verbatim: choice.label).font(font).foregroundStyle(choice.colour)                .frame(maxWidth: .infinity, minHeight: 52)                .contentShape(Rectangle())        }        .buttonStyle(.plain)        .accessibilityIdentifier("look-ask-\(choice.id)")    }}#endif