SwiftStyledStrings:Swift中的简单属性字符串

时间:2021-05-04 02:17:07
【文件属性】:
文件名称:SwiftStyledStrings:Swift中的简单属性字符串
文件大小:11KB
文件格式:ZIP
更新时间:2021-05-04 02:17:07
Swift SwiftStyledStrings 构建属性字符串的一种简单而安全的方法。 不必担心再次记住字典键! 还有, 用法 很简单,您有一个枚举StringAttribute ,可以使用它,并且只需构造它的值即可,如下所示: let fontAttr = . Font (UIFont. boldSystemFontOfSize ( CGFloat ( 12 ))) let foregroundColor = . FgColor (UIColor. redColor ()) 但是,必须创建一堆这样的绑定看起来很乏味,那么您将如何执行IRL? let attribute:StringAttribute = . Font (UIFont. boldSystemFontOfSize ( CGFloat ( 12 ))) <> . FgColor (UIColor. red
【文件预览】:
SwiftStyledStrings-master
----SwiftStyledStringsTests()
--------Info.plist(760B)
--------SwiftStyledStringsTests.swift(2KB)
----SwiftStyledStrings.xcodeproj()
--------project.pbxproj(15KB)
----README.md(3KB)
----License.md(1KB)
----SwiftStyledStrings()
--------Info.plist(833B)
--------Source()
--------SwiftStyledStrings.h(579B)

网友评论