iOS開源 - 復制 iOS 樣式庫到 Sketch 以改善、加速設計流程
I’ve decided to take styles from Xcode and do my best to replicate them for Sketch. Along the way, I documented the process of how I ended up with the result so you can look into things even further.
UIBlurEffectStyle
The API doesn't provide any specs for blurs, so it's a challange to replicate. For performance concerns, I understand why Apple isn't open about these specs. However, as designers I think we shuold be aware of these constraints and design with them.
Usage
- Open UIBlurEffectStyle.sketch
- Copy style of a blur type
- Paste style to any shape
Process
- Created a few colorful shapes to blur
- Rendered and exported all three types of blur over the shapes in Xcode:
- extraLight
- light
- dark
- Replicated each blur type in Sketch
UIFontTextStyle
Apple’s system fonts are designed for legibility and provide a variety of sizes which automatically react to accessibility features. You can read more about why it’s best to use system fonts on the iOS Human Interface Guidelines .
Usage
- Open UIFontTextStyle.sketch
- Copy & Paste artboard into Sketch document
- Assign texts to a system style
Process
- Made a list of all ten text styles:
- Title1
- Title2
- Title3
- Headline
- Subhead
- Body
- Footnote
- Caption1
- Caption2
- Callout
- Printed out the specs in Xcode (e.g. UIFontTextStyle(_rawValue: UICTFontTextStyleTitle1): .SFUIDisplay-Light, 28 )
- Used font tracking designcode.io recommends
Get Involved
Suggest a style
- Create anew issue
- Describe the iOS style that should be replicated
- :sparkles: Bonus: Follow the issue to provide feedback
Leave feedback
- Create anew issue
- Mention which style you have feedback on
- :sparkles: Bonus: Follow the issue to provide feedback
Ask a question
本文由用戶 qqpkat2 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!