Skip to content

Add SVG rendering for conference thumbnails#50

Merged
mbernson merged 1 commit into
mainfrom
feature/svg-thumbnails
Jul 7, 2026
Merged

Add SVG rendering for conference thumbnails#50
mbernson merged 1 commit into
mainfrom
feature/svg-thumbnails

Conversation

@mbernson

@mbernson mbernson commented Jul 7, 2026

Copy link
Copy Markdown
Owner

Many thumbnails of the conferences on media.ccc.de use SVG for the conference logos. HackerTube displays these as thumbnails in a grid, but Apple's AsyncImage cannot render them. Since Apple provides no APIs for SVG rendering, the open source NanoSVG library is a nice option because it's lightweight, can be directly included in this project. And it doesn't matter if the conference logo doesn't render perfectly - it's better than nothing.

  • Set up NanoSVG package containing a tiny Swift wrapper around the NanoSVG library.
  • Add SVGImageView, functioning like AsyncImage but for rendering SVGs to bitmaps. Including a small cache.

* Set up NanoSVG package containing a tiny Swift wrapper around the
  NanoSVG library.
* Add SVGImageView, functioning like `AsyncImage` but for rendering SVGs
  to bitmaps. Including a small cache.
@mbernson
mbernson merged commit 73d2316 into main Jul 7, 2026
4 checks passed
@mbernson
mbernson deleted the feature/svg-thumbnails branch July 7, 2026 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant