Repository navigation
Let a custom tag show a small image before its text - #23
Merged
Merged
Conversation
A pill tag often shows a small icon before its label, but a TranscriptDecoration could not hold an image. TranscriptDecoration.image takes a TranscriptTagImage: a CGImage, its size in points, the gap to the text and an optional tint for template images. The image takes room after the tag's padding, laid out like the padding as extra spacing before the tag, so the tag's shapes surround it. It is drawn just before the text, centred on the text's cap height, and it is hidden with the tag's shapes while the tag's animation plays. Closes #7. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A pill tag often shows a small icon before its label, but a
TranscriptDecorationcould not hold an image.TranscriptDecoration.imagetakes aTranscriptTagImage: aCGImage, its size in points, the gap to the text, and an optional tint for template images.Closes #7.
Stack
This PR is part of a stack. It is based on #22 (
feature/voiceover), so its diff shows only this change. Merge the stack in order, starting with #17.Tests
swift test: 140 tests pass.🤖 Generated with Claude Code