Skip to content

Commit

Permalink
Update podspec and README
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanhuang13 committed Oct 17, 2019
1 parent e70555b commit 338ada0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down Expand Up @@ -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`).

Expand Down

0 comments on commit 338ada0

Please sign in to comment.