增加SPM支持
Swift Package Manager for Apple platforms
Select Xcode menu File > Swift Packages > Add Package Dependency
and enter repository URL with GUI.
Repository: https://github.com/lixiang1994/AttributedString
Swift Package Manager
Add the following to the dependencies of your Package.swift
:
.package(url: "https://github.com/lixiang1994/AttributedString.git", from: "version")