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

    相关文章

    SpringBoot整合DeepSeek实现AI对话功能

    《SpringBoot整合DeepSeek实现AI对话功能》本文介绍了如何在SpringBoot项目中整合DeepSeekAPI和本地私有化部署DeepSeekR1模型,通过SpringAI框架简化了... 目录Spring AI版本依赖整合DeepSeek API key整合本地化部署的DeepSeek

    Python实现多路视频多窗口播放功能

    《Python实现多路视频多窗口播放功能》这篇文章主要为大家详细介绍了Python实现多路视频多窗口播放功能的相关知识,文中的示例代码讲解详细,有需要的小伙伴可以跟随小编一起学习一下... 目录一、python实现多路视频播放功能二、代码实现三、打包代码实现总结一、python实现多路视频播放功能服务端开

    css实现图片旋转功能

    《css实现图片旋转功能》:本文主要介绍了四种CSS变换效果:图片旋转90度、水平翻转、垂直翻转,并附带了相应的代码示例,详细内容请阅读本文,希望能对你有所帮助... 一 css实现图片旋转90度.icon{ -moz-transform:rotate(-90deg); -webkit-transfo

    C语言小项目实战之通讯录功能

    《C语言小项目实战之通讯录功能》:本文主要介绍如何设计和实现一个简单的通讯录管理系统,包括联系人信息的存储、增加、删除、查找、修改和排序等功能,文中通过代码介绍的非常详细,需要的朋友可以参考下... 目录功能介绍:添加联系人模块显示联系人模块删除联系人模块查找联系人模块修改联系人模块排序联系人模块源代码如下

    Java中使用Java Mail实现邮件服务功能示例

    《Java中使用JavaMail实现邮件服务功能示例》:本文主要介绍Java中使用JavaMail实现邮件服务功能的相关资料,文章还提供了一个发送邮件的示例代码,包括创建参数类、邮件类和执行结... 目录前言一、历史背景二编程、pom依赖三、API说明(一)Session (会话)(二)Message编程客

    Java CompletableFuture如何实现超时功能

    《JavaCompletableFuture如何实现超时功能》:本文主要介绍实现超时功能的基本思路以及CompletableFuture(之后简称CF)是如何通过代码实现超时功能的,需要的... 目录基本思路CompletableFuture 的实现1. 基本实现流程2. 静态条件分析3. 内存泄露 bug

    C#实现系统信息监控与获取功能

    《C#实现系统信息监控与获取功能》在C#开发的众多应用场景中,获取系统信息以及监控用户操作有着广泛的用途,比如在系统性能优化工具中,需要实时读取CPU、GPU资源信息,本文将详细介绍如何使用C#来实现... 目录前言一、C# 监控键盘1. 原理与实现思路2. 代码实现二、读取 CPU、GPU 资源信息1.

    Java中Springboot集成Kafka实现消息发送和接收功能

    《Java中Springboot集成Kafka实现消息发送和接收功能》Kafka是一个高吞吐量的分布式发布-订阅消息系统,主要用于处理大规模数据流,它由生产者、消费者、主题、分区和代理等组件构成,Ka... 目录一、Kafka 简介二、Kafka 功能三、POM依赖四、配置文件五、生产者六、消费者一、Kaf

    Go语言实现将中文转化为拼音功能

    《Go语言实现将中文转化为拼音功能》这篇文章主要为大家详细介绍了Go语言中如何实现将中文转化为拼音功能,文中的示例代码讲解详细,感兴趣的小伙伴可以跟随小编一起学习一下... 有这么一个需求:新用户入职 创建一系列账号比较麻烦,打算通过接口传入姓名进行初始化。想把姓名转化成拼音。因为有些账号即需要中文也需要英

    基于WinForm+Halcon实现图像缩放与交互功能

    《基于WinForm+Halcon实现图像缩放与交互功能》本文主要讲述在WinForm中结合Halcon实现图像缩放、平移及实时显示灰度值等交互功能,包括初始化窗口的不同方式,以及通过特定事件添加相应... 目录前言初始化窗口添加图像缩放功能添加图像平移功能添加实时显示灰度值功能示例代码总结最后前言本文将