google / google/material-design-icons

iOS: Use PDF instead of PNG

Open
#332 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
No language data
Stars
54k
Forks
9.7k
PR merge metrics
No merged PRs in 30d

Description

Instead of using PNG files, consider using PDF files with vectors. Xcode then compiles whichever sizes it needs (it renders the PDF into bitmap during compile time). This has several advantages:

a) less files.
b) won't include @3x on OS X, where it's not needed (yet).
c) were there @2.5x or @4x in the future, it will be supported out of the box.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by identifying the iOS PNG assets affected by this proposal and review how Xcode currently consumes their size variants. Confirm the scope of replacing them with vector PDFs, then verify that Xcode renders the required bitmap sizes and that the resulting asset set no longer needs the unnecessary variants.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios
Domain
mobile
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.