【文件属性】:
文件名称:textattributes:一个用于构造和修改NSAttributedStrings的小型库
文件大小:82KB
文件格式:ZIP
更新时间:2021-03-18 02:51:14
Swift
TextAttributes
用于构造和修改NSAttributedStrings的库
要求
iOS 12.1以上
安装
可可豆
您可以使用安装TextAttributes将其添加到您的Podfile :
platform :ios , '12.1'
use_frameworks!
pod 'TextAttributes' , :git => 'git@github.com:joeypatino/textattributes.git'
用法示例
例子一
import TextAttributes
let label = UILabel ()
let string = " hello world "
let attributedString = string. attributed (). mutable
attributedString. addAttribute (. foregrou
【文件预览】:
textattributes-main
----TextAttributes.podspec(706B)
----TextAttributes()
--------Classes()
--------Info.plist(752B)
--------TextAttributes.h(386B)
----LICENSE.md(1KB)
----README.md(2KB)
----TextAttributes.xcodeproj()
--------project.xcworkspace()
--------project.pbxproj(28KB)
----TextAttributesDemo()
--------ViewController.swift(2KB)
--------Info.plist(2KB)
--------AppDelegate.swift(347B)
--------Extensions()
--------Base.lproj()
--------Assets.xcassets()
----TextAttributesTests()
--------Info.plist(727B)
--------TextAttributesTests.swift(2KB)
----.gitignore(21B)
----repository_assets()
--------example_two.png(25KB)
--------example_one.png(32KB)