// A list's Select tick: the round mark in a picked record's corner, filled// when picked. Drawn once for any list that selects (`select`), the library's// prints and its contact sheet alike.importSwiftUIstructPickMark: View { @Environment(\.theme) privatevar themelet isPicked: Bool/// Ticked before the pick began (already in the group): the tick in/// pencil, not the accent, and not the pick's to take back.var isHeld = falselet identifier: String?var body: someView { VStack {Spacer(minLength: 0) HStack {Spacer(minLength: 0) ZStack {Circle() .fill(isHeld ? theme.colors.inkSecondary.color : isPicked ? theme.colors.accent.color : theme.colors.groundMuted.color) .frame(width: PickMarkKnobs.facePickMarkSide, height: PickMarkKnobs.facePickMarkSide)if isPicked {Image(systemName: "checkmark") .font(theme.type.interface(PickMarkKnobs.facePickMarkTypeSize, weight: .semibold)) .foregroundStyle(theme.colors.accentContrast.color) } } .padding(PickMarkKnobs.facePickMarkPadding) } } .accessibilityHidden(true) .accessibilityIdentifier(identifier ?? "") }}extensionView {/// A value read out after the element's label ("Already in Family");/// nothing added when there are no words. @ViewBuilder func spokenValue(_ words: String?) -> someView {iflet words { accessibilityValue(words) } else { self } }}/// The sizes, counts and timings PickMark draws with: Swift's own, beside/// their reader — a theme sets only its tokens (`scale.tokens`).enumPickMarkKnobs {staticlet facePickMarkPadding: CGFloat = 4staticlet facePickMarkSide: CGFloat = 22staticlet facePickMarkTypeSize: CGFloat = 14}