feature(UI): Account Drawer Redesign#428
Conversation
| let letter = "\(splitName[0].capitalized.first!)\(splitName[1].capitalized.first!)" | ||
| return letter | ||
| } else { | ||
| return String(splitName[0].capitalized.first!) |
There was a problem hiding this comment.
WebKit is SVG-capable, but there is no native SVG platform support. Instead, Xcode pre-renders SVGs in asset catalogs, and turns them into a set of PNGs at each specified DPI (@2x or @3x) or "one size" according to the original SVG viewbox, depending on which boxes you tick in the asset catalog.
You can also tick "preserve vector data," but I think all that does is copy the original SVG to the app bundle, so you can access the actual file, the XML data, but there's no way to render it without a third-party library -- or by loading into WebKit.
For SF Symbols, and the new Icon Composer app icons, it works like tvOS app icons, where you also start with SVGs that get pre-rendered into PNGs (and font outlines for SF Symbols), and more than one color means separate SVGs in back|middle|front layers (only 3!)...
tl;dr Drawing the icons like you're doing is probably as easy to maintain as anything else. Especially if the design tool provides the Swift Path code, it's gonna be easier than explaining why/how multicolor icons have to be split into color-separated SVG files

Contribution Summary
Redesign of account drawer per design #396
Closes #414 Closes #413 Closes #415 Closes #417
Screenshots
Please include any screenshots of modified visuals within the project.
AI Contribution Disclosure
Contribution Checklist