google / google/material-design-icons
iOS: Use PDF instead of PNG
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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