diff --git a/NSAttributedStringBuilder.podspec b/NSAttributedStringBuilder13.podspec similarity index 95% rename from NSAttributedStringBuilder.podspec rename to NSAttributedStringBuilder13.podspec index ebd7164..dd0cc0e 100644 --- a/NSAttributedStringBuilder.podspec +++ b/NSAttributedStringBuilder13.podspec @@ -7,8 +7,8 @@ # Pod::Spec.new do |s| - s.name = 'NSAttributedStringBuilder' - s.version = '0.3.1' + s.name = 'NSAttributedStringBuilder13' + s.version = '0.3.2' s.summary = 'Composing NSAttributedString with SwiftUI-style syntax, powerd by the now pitching Function Builder.' # This description is used to generate tags and improve search results. diff --git a/README.md b/README.md index 051068d..0fbf85d 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ Project Link: [https://github.com/ethanhuang13/NSAttributedStringBuilder](https: | | Features | | --- | --- | -| 🐦 | Open source library written in Swift 5 | +| 🐦 | Open source library written in Swift 5.1 | | 🍬 | SwiftUI-like syntax | | 💪 | Support most attributes in `NSAttributedString.Key` | | 📦 | Distribution with Swift Package Manager | @@ -52,10 +52,13 @@ let attributedString = NSAttributedString { Xcode 11. This project uses Swift 5.1 feature [Function Builder](https://forums.swift.org/t/function-builders/25167). ## Installation -Please use **Swift Package Manager** to install. +### Swift Package Open your project in Xcode 11, navigate to **Menu -> Swift Packages -> Add Package Dependency** and enter [https://github.com/ethanhuang13/NSAttributedStringBuilder](https://github.com/ethanhuang13/NSAttributedStringBuilder) to install. +### CocoaPods +Add `pod AttributedStringBuilder13` to your `Podfile`. + ## SwiftUI Sample Project Besides clearer `NSAttributedString` syntax, since **NSAttributedStringBuilder** uses Function Builder it also enables API to build components in `UIViewRepresentable`(which embbed `UIView` in a SwiftUI `View`).