Something went wrong. Try again.
A slopfork of Sam Henri Gold's Twitter client, reskinned like Tweetie 2 / Twitter for iPhone circa 2012. Personal use.
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445import Modelsimport SwiftUI
/// "Readers added context" under a post.package struct CommunityNoteCard: View { let note: CommunityNote
package init(note: CommunityNote) { self.note = note }
package var body: some View { VStack(alignment: .leading, spacing: 8) { Group { if let shortTitle = note.shortTitle { Label(shortTitle, twitterIcon: .communities) } else { Label("Readers added context", twitterIcon: .communities) } } .font(.subheadline.weight(.semibold))
TweetText(text: note.text, links: note.links, font: .subheadline)
if let footer = note.footer { Text(footer) .font(.caption) .foregroundStyle(.secondary) }
if let url = note.destinationURL { Link("Rate this note", destination: url) .font(.caption.weight(.semibold)) } } .padding(12) .frame(maxWidth: .infinity, alignment: .leading) .overlay { RoundedRectangle(cornerRadius: 16) .strokeBorder(.quaternary) } .accessibilityElement(children: .combine) }}