-
Notifications
You must be signed in to change notification settings - Fork 842
Description
Describe the bug
I put the SVG assets from the v17.9.0 release of Octicons into an xcasset bundle, enabling "Preserve Vector Data", and built a viewer for the Octicons within a macOS app.
A number of the icons rendered odd paths, resulting in improper display of the icons.
List of affected icons
broadcast-16broadcast-24copilot-48copilot-96copilot-warning-16eye-closed-24file-badge-16gear-24history-16issue-draft-16issue-draft-24issue-reopened-16iterations-16iterations-24link-16link-24mention-16mention-24meter-16moon-16number-24paintbrush-16paperclip-16paste-16paste-16people-16people-24person-16person-24person-add-16person-add-24person-fill-16person-fill-24question-16rss-16rss-24squirrel-16squirrel-24tools-24unmute-16unmute-24unverified-16webhook-16
Steps to reproduce
For Hubbers:
For non-Hubbers:
- Create a new iOS or macOS app
- Add any of the affected Octicons to the app as an SVG asset within an xcassets bundle
- Render the Octicon within the app
Expected behavior
Octicons render on iOS and macOS in the same manner that they do within web browsers, without the need for modifications.
Screenshots
Please add screenshots to help explain the problem.
gear-24 |
history-16 |
issue-draft-16 |
iterations-24 |
person-24 |
|---|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
Device details
Desktop (please complete the following information):
- OS: macOS 12+
- Browser: n/a
- Version: n/a
Smartphone (please complete the following information):
- Device: all iOS devices
- OS: iOS 15+
- Browser: n/a
- Version: n/a
Additional info
Currently, GitHub Mobile uses the PDFs as exported from the Octicons site, which render fine! It seems to be the format of the SVGs that iOS and macOS don't like.
However, if we can build SVGs that work on iOS and macOS, we can leverage the versioning of the npm package to have Octicons be version-bumped by Dependabot automagically, keeping GitHub Mobile's icons consistently up-to-date.




