SwiftyAttributes:用于属性字符串的Swifty API

时间:2021-02-03 10:17:25
【文件属性】:
文件名称:SwiftyAttributes:用于属性字符串的Swifty API
文件大小:76KB
文件格式:ZIP
更新时间:2021-02-03 10:17:25
macos swift ios tvos watchos SwiftyAttributes 用于属性字符串的Swifty API。 使用SwiftyAttributes ,您可以像这样创建属性字符串: let fancyString = " Hello World! " . withTextColor (. blue ). withUnderlineStyle (. styleSingle ) 或者,使用Attribute枚举: let fancyString = " Hello World! " . withAttributes ([ . backgroundColor (. magenta ), . strokeColor (. orange ), . strokeWidth ( 1 ), . baselineOffset ( 5.2 ) ]) 您还可以使用加号轻松组合属性字符串: let fancyString = " Hello " . withFont (. systemFont ( ofSize : 12 )) + " World! " . withFont (. systemFont
【文件预览】:
SwiftyAttributes-master
----.travis.yml(550B)
----SwiftyAttributes.xcodeproj()
--------project.xcworkspace()
--------project.pbxproj(44KB)
--------xcshareddata()
----SwiftyAttributes()
--------SwiftyAttributes.h(313B)
--------Sources()
--------Info.plist(868B)
----SwiftyAttributes.podspec(1KB)
----LICENSE(1KB)
----Package.swift(550B)
----Gemfile(59B)
----Gemfile.lock(2KB)
----codecov.yml(500B)
----SwiftyAttributesTests()
--------Operators_Tests.swift(5KB)
--------Attribute+Sequence_Tests.swift(2KB)
--------NSAttributedString_Tests.swift(20KB)
--------WritingDirection_Tests.swift(2KB)
--------NSMutableAttributedString_Tests.swift(4KB)
--------SpellingState_Tests.swift(561B)
--------NSString_Tests.swift(2KB)
--------VerticalGlyphForm_Tests.swift(455B)
--------TextEffect_Tests.swift(666B)
--------Images.xcassets()
--------Info.plist(680B)
--------SwiftyAttributes_Tests.swift(13KB)
--------UIKit+SwiftyAttributes_Tests.swift(2KB)
----.gitignore(24B)
----ExampleApp-iOS()
--------ViewController.swift(3KB)
--------Assets.xcassets()
--------Base.lproj()
--------AppDelegate.swift(442B)
--------Info.plist(1KB)
----README.md(5KB)
----ExampleApp-macOS()
--------ViewController.swift(3KB)
--------Assets.xcassets()
--------Base.lproj()
--------AppDelegate.swift(239B)
--------Info.plist(1KB)

网友评论