no symbols_SF Symbols 2的新增功能

2023-10-29 03:40
文章标签 功能 新增 symbols sf

本文主要是介绍no symbols_SF Symbols 2的新增功能,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

no symbols

Before SF Symbols, making icons for iOS apps used to present a major hassle for both the designer and the developer. A workflow would often look along the lines of this:

在SF Symbols之前,为iOS应用制作图标曾经给设计人员和开发人员带来了很大的麻烦。 工作流通常会遵循以下思路:

  1. Plan the icon.

    计划图标。
  2. Design it and make sure it aligns with your app’s message.

    设计它并确保它与您的应用程序的消息对齐。
  3. Or go online and find an icon instead…

    或者上网查找图标代替...
  4. … which would probably mean purchasing a license.

    …这可能意味着要购买许可证。
  5. After all the work, you can finally embed it into your app — only to find the font weight is off and you need to tweak it.

    完成所有工作之后,您最终可以将其嵌入到您的应用程序中-只是发现字体粗细已关闭,您需要对其进行调整。

Google’s Material Design icons have been around since 2014, and websites like Font Awesome were launched even earlier. So when would Apple jump into the icon battle?

Google的Material Design图标自2014年以来就出现了,像Font Awesome这样的网站甚至更早就已经启动。 那么,苹果何时会跳入图标之战?

In 2019, Apple debuted their own set of icons, called SF Symbols. It was a huge gift for developers and designers alike, as in a truly Apple way, they were easier to use than any other icon pack.

苹果在2019年首次推出了自己的图标集SF Symbols 。 对于开发人员和设计师而言,这都是一份巨大的礼物,因为以一种真正的Apple方式,它们比其他任何图标包都更易于使用。

Now, in 2020, Apple has decided it was time for a refresh. At WWDC20, they released the second generation of SF Symbols: SF Symbols 2. Here’s what’s new.

现在,在2020年,苹果公司决定是时候进行更新了。 在WWDC20上,他们发布了第二代SF Symbols:SF Symbols2。这是新功能。

号码 (The Numbers)

SF Symbols 1 boasted 1,500+ icons, and SF Symbols 2 raises that to 2,400+, including 150+ that are multicolor.

SF Symbols 1拥有1,500+个图标,而SF Symbols 2则将其增加到2,400+个,其中150+个是彩色的。

Image for post

A lot of the new icons depict physical devices, like the buttons on a gaming controller and an external drive. The Apple logo is also finally available as an icon, but it can only be used to reference “Sign in with Apple.”

许多新图标描述了物理设备,例如游戏控制器和外部驱动器上的按钮。 Apple徽标最终也可以作为图标使用,但只能用于引用“使用Apple登录”。

设计改进 (Design Improvements)

Multicolor icons are now available.

现在可以使用多色图标。

Image for post

However, they’re currently only supported in NSImage, which doesn’t work on iOS. An Apple engineer told me, “Unfortunately, iOS doesn’t support multicolor symbols at this point. This also includes Mac Catalyst, since that’s using UIKit APIs.”

但是,它们目前仅在NSImage中受支持,但在iOS上不起作用。 一位苹果工程师告诉我:“很遗憾,iOS目前不支持多色符号。 这也包括Mac Catalyst,因为它使用的是UIKit API。”

But support will definitely come soon. After all, SF Symbols 2 is still in beta, and you can check out this thread for updates.

但是支持肯定会很快到来。 毕竟,SF Symbols 2仍处于beta版,您可以签出该线程以进行更新。

New this year are also negative side margins. This means that icons can overflow out of their bounding boxes while preserving alignment.

今年的新产品也有负边际利润。 这意味着图标可以在保持对齐的同时溢出其边界框。

Image for post

With negative side margins, you get a lot of control of the optical alignment.

在负边距的情况下,您可以很好地控制光学对准。

应用程序改进 (App Improvements)

All of these new icons, including the old ones, are discoverable in the new SF Symbols 2 app. And just like how the icons got upgrades, the app got some too.

所有这些新图标(包括旧图标)都可以在新的SF Symbols 2应用中找到 。 就像图标如何升级一样,该应用程序也得到了一些升级。

The first things you’ll probably notice are the two new buttons in the toolbar:

您可能会注意到的第一件事是工具栏中的两个新按钮:

Image for post

The Color Well button, when pressed, goes into multicolor preview mode. Any icons that are available in multicolor will be highlighted.

按下彩色井按钮时,它将进入多色预览模式。 多色可用的任何图标将突出显示。

Image for post

Then there’s the Info button, which opens the all-new Inspector Panel. When you select an icon, this panel will populate with information about your selected icon.

然后是“信息”按钮,它将打开全新的“检查器面板”。 当您选择一个图标时,此面板将填充有关所选图标的信息。

Image for post

This panel contains:

该面板包含:

  • Name of the icon

    图标名称
  • Preview of the icon

    图标预览
  • Whether it’s available in multicolor or not

    是否提供多色
  • Localized versions, if any

    本地化版本(如果有)
  • Which iOS versions it’s available in

    它在哪些iOS版本中可用
  • Deprecated names, if any

    弃用的名称(如果有)
  • Any use restrictions

    任何使用限制

In my opinion, the iOS version availability check is the coolest and most useful feature in the entire app update. Also in my opinion, the new app icon is the worst part of the entire app update.

我认为,iOS版本可用性检查是整个应用程序更新中最酷,最有用的功能。 我也认为,新的应用程序图标是整个应用程序更新中最糟糕的部分。

Image for post

I’m still not a fan of the rounded app icons that will soon take over macOS.

我仍然不喜欢即将接管macOS的圆形应用程序图标。

其他改进 (Miscellaneous Improvements)

本土化 (Localization)

SF Symbols already supported some languages last year, but more are supported this year. For right-to-left writing systems, you can simply flip the image. (In the asset catalog, set Direction to Mirrors.) Also, script-based languages like Arabic, Devanagari, and Hebrew now also have their own variants.

去年,SF Symbols已经支持某些语言,但今年将支持更多语言。 对于从右到左书写系统,您可以简单地翻转图像。 (在资产目录中,将Direction设置为Mirrors。)此外,基于脚本的语言(如阿拉伯语,梵文和希伯来语)现在也有自己的变体。

Image for post

字符串插值 (String interpolation)

New in SwiftUI, you can now also embed SF Symbols within strings.

SwiftUI中的新增功能,您现在还可以在字符串中嵌入SF符号。

Image for post

However, I tried this in UIKit and it didn’t work — looks like I still need to stick with NSTextAttachment in my UIKit apps for now. *sigh*

但是,我在UIKit中尝试了一下,但没有成功-看来我现在仍然需要在UIKit应用程序中坚持使用NSTextAttachment 。 *叹*

处理过时的名称 (Handling of deprecated names)

Now that SF Symbols has gotten a refresh, some of the icons’ names have been changed. If you’re using an icon that got a name change:

如今,SF Symbols得到了刷新,一些图标的名称已更改。 如果您使用的图标名称已更改:

  • If your minimum deployment target is iOS 13, you need to use the old name.

    如果最小部署目标是iOS 13,则需要使用旧名称。
  • If your minimum deployment target is iOS 14, you should use the new name.

    如果最小部署目标是iOS 14,则应使用新名称。

Xcode knows of these changes, but only in the storyboard. In the code editor, you need to keep the naming in mind.

Xcode知道这些更改,但仅在情节提要中知道。 在代码编辑器中,您需要牢记命名。

结论 (Conclusion)

SF Symbols 2 brings 750+ new icons, out of which 150+ are available in multicolor. Controlling optical alignment is much easier. Localization is improved, as is the syntax for declaring icons. The app itself received a small (but very useful) update.

SF Symbols 2带来了750多个新图标,其中有150多个是彩色的。 控制光学对准要容易得多。 本地化得到了改善,声明图标的语法也得到了改善。 该应用程序本身收到了一个小(但非常有用)的更新。

All in all, SF Symbols 2 is a very nice resource for developers and designers. Happy coding, and make sure to use them!

总而言之,对于开发人员和设计人员而言,SF Symbols 2是一个很好的资源。 编码愉快,请确保使用它们!

翻译自: https://medium.com/better-programming/whats-new-in-sf-symbols-2-b5e49eee7f0a

no symbols


http://www.taodudu.cc/news/show-8083900.html

相关文章:

  • Flutter(一)--初入Flutter基础组件
  • js 复制粘贴到微信编辑器出现图片和样式问题
  • 【微信小程序】基础知识
  • 附录4-微信开发者工具
  • android会禁微信吗,微信开发踩过的坑
  • php-微信自定义菜单按钮格式
  • 微信小程序整理资料
  • 平凡而又神奇的贝叶斯方法 zz刘未鹏
  • zz: RTSP协议分析-3
  • [zz]C++面试宝典
  • UTF-8 and Unicode FAQ(zz)
  • zz正则表达式语法
  • js实现字符串处理,具体如下:字母变成相邻字母,标点符号不变,结果如果是元音字母则大写,z变成a。...
  • php元字符匹配规则,正则表达式 元字符和匹配规则
  • 安卓逆向——抖音极速版爬虫
  • 每日新闻 | 华为应届生年薪百万,引才就得打破薪酬“天花板”
  • 汽车屏类产品(五):中控IVI车载信息娱乐系统
  • 全年产假? 冻卵报销? $2000刀旅行补贴....硅谷公司的蜜汁福利你知多少?
  • 这一年:我30岁,孩子3岁!看完后,对孩子再好一点吧~
  • 五万粉丝,30万保底
  • 一个卖家的自述:网上开店 你能走得更远-
  • 过去一年你买了多少外国货?大数据估计又要令你扎心了……
  • chrome 模拟微信浏览器
  • GET http://192.168.xx.xxx:xxxx/sockjs-node/info?t=1638719004722 net::ERR_CONNECTION_TIMED_OUT
  • dubbo测试时启动项目报错
  • 爬虫笔记5:requests模块
  • CSS打印预览不显示问题
  • OSX:CUPS不打印问题
  • 潇洒郎: 非常好用的网页下载打印插件Print Friendly PDF
  • 重生奇迹MU武器在哪里买
  • 这篇关于no symbols_SF Symbols 2的新增功能的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



    http://www.chinasem.cn/article/298010

    相关文章

    苹果macOS 26 Tahoe主题功能大升级:可定制图标/高亮文本/文件夹颜色

    《苹果macOS26Tahoe主题功能大升级:可定制图标/高亮文本/文件夹颜色》在整体系统设计方面,macOS26采用了全新的玻璃质感视觉风格,应用于Dock栏、应用图标以及桌面小部件等多个界面... 科技媒体 MACRumors 昨日(6 月 13 日)发布博文,报道称在 macOS 26 Tahoe 中

    Java使用HttpClient实现图片下载与本地保存功能

    《Java使用HttpClient实现图片下载与本地保存功能》在当今数字化时代,网络资源的获取与处理已成为软件开发中的常见需求,其中,图片作为网络上最常见的资源之一,其下载与保存功能在许多应用场景中都... 目录引言一、Apache HttpClient简介二、技术栈与环境准备三、实现图片下载与保存功能1.

    MybatisPlus service接口功能介绍

    《MybatisPlusservice接口功能介绍》:本文主要介绍MybatisPlusservice接口功能介绍,本文给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友... 目录Service接口基本用法进阶用法总结:Lambda方法Service接口基本用法MyBATisP

    Java反射实现多属性去重与分组功能

    《Java反射实现多属性去重与分组功能》在Java开发中,​​List是一种非常常用的数据结构,通常我们会遇到这样的问题:如何处理​​List​​​中的相同字段?无论是去重还是分组,合理的操作可以提高... 目录一、开发环境与基础组件准备1.环境配置:2. 代码结构说明:二、基础反射工具:BeanUtils

    Druid连接池实现自定义数据库密码加解密功能

    《Druid连接池实现自定义数据库密码加解密功能》在现代应用开发中,数据安全是至关重要的,本文将介绍如何在​​Druid​​连接池中实现自定义的数据库密码加解密功能,有需要的小伙伴可以参考一下... 目录1. 环境准备2. 密码加密算法的选择3. 自定义 ​​DruidDataSource​​ 的密码解密3

    SpringCloud使用Nacos 配置中心实现配置自动刷新功能使用

    《SpringCloud使用Nacos配置中心实现配置自动刷新功能使用》SpringCloud项目中使用Nacos作为配置中心可以方便开发及运维人员随时查看配置信息,及配置共享,并且Nacos支持配... 目录前言一、Nacos中集中配置方式?二、使用步骤1.使用$Value 注解2.使用@Configur

    SpringBoot后端实现小程序微信登录功能实现

    《SpringBoot后端实现小程序微信登录功能实现》微信小程序登录是开发者通过微信提供的身份验证机制,获取用户唯一标识(openid)和会话密钥(session_key)的过程,这篇文章给大家介绍S... 目录SpringBoot实现微信小程序登录简介SpringBoot后端实现微信登录SpringBoo

    使用Vue-ECharts实现数据可视化图表功能

    《使用Vue-ECharts实现数据可视化图表功能》在前端开发中,经常会遇到需要展示数据可视化的需求,比如柱状图、折线图、饼图等,这类需求不仅要求我们准确地将数据呈现出来,还需要兼顾美观与交互体验,所... 目录前言为什么选择 vue-ECharts?1. 基于 ECharts,功能强大2. 更符合 Vue

    Java如何用乘号来重复字符串的功能

    《Java如何用乘号来重复字符串的功能》:本文主要介绍Java使用乘号来重复字符串的功能,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录Java乘号来重复字符串的功能1、利用循环2、使用StringBuilder3、采用 Java 11 引入的String.rep

    macOS Sequoia 15.5 发布: 改进邮件和屏幕使用时间功能

    《macOSSequoia15.5发布:改进邮件和屏幕使用时间功能》经过常规Beta测试后,新的macOSSequoia15.5现已公开发布,但重要的新功能将被保留到WWDC和... MACOS Sequoia 15.5 正式发布!本次更新为 Mac 用户带来了一系列功能强化、错误修复和安全性提升,进一步增