// A raised sheet's title, drawn over the acts of the one thing it was raised for.importCottonKitimportSwiftUI/// A raised sheet's title: the thing it was raised for, and what it is asked/// of small under it.structTrayTitle: View { @Environment(\.theme) privatevar themelet title: Stringvar subject: String? = nilvar body: someView { VStack(alignment: .leading, spacing: TrayTitleKnobs.pickTitleStackGap) {// The record's name as its page sets it: two lines, cut at a// word — never one line cut mid-word ("INV/26…", walker294).PaperTitleLines(title: title) { $0.font(theme.type.title(theme.scale.titleSize + 5)) .foregroundStyle(theme.print(.ink)) }iflet subject {Text(subject) .font(theme.type.hand(theme.scale.handSize + 1)) .foregroundStyle(theme.print(.pencil)) .lineLimit(1) } } .accessibilityElement(children: .combine) .accessibilityAddTraits(.isHeader) }}/// The gaps TrayTitle draws with: Swift's own, beside their reader.enumTrayTitleKnobs {staticlet pickTitleStackGap: CGFloat = 2}