Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/vectorform/Texty
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Efremov committed Apr 21, 2017
2 parents e0b9ba3 + 4eab9d7 commit 12cf0bf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ Texty's goal is to make managing styles and annotated strings clean and easy.


## Getting started
### Create TextStyle's
### Create TextStyles
```swift
/// This is the default way to create TextStyle's.
/// This is the default way to create TextStyles.
struct Style {
static let Header1: TextStyle = TextStyle(attributes: [.foregroundColor : UIColor.black, .font : UIFont.boldSystemFont(ofSize: 24.0)])
}
Expand Down Expand Up @@ -40,7 +40,7 @@ The attributes available to use are:
These line up with the attributes listed in Apple's [documentation](https://developer.apple.com/reference/foundation/nsattributedstring/character_attributes).


### Create TextyLabel's with style!
### Create TextyLabels with style!
```swift
let titleLabel: TextyLabel = TextyLabel(style: Styles.Header1)

Expand All @@ -59,7 +59,7 @@ titleLabel.style.underlineStyle = someStyle
```


### Associating TextStyle's with tags in strings
### Associating TextStyles with tags in strings
Tags can be used to apply TextAttribute's to text in a TextyLabel. The tag is a string key that is inserted into the text, similar to an HTML tag.

```swift
Expand Down
2 changes: 1 addition & 1 deletion Texty.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Pod::Spec.new do |s|
# * Finally, don't worry about the indent, CocoaPods strips it!

s.description = <<-DESC
A library to make managing style and annotated string clean and easy.
A library to make managing style and annotated string clean and easy. Also has support for sub styles inside a TextyLabel.
DESC

s.homepage = 'https://github.com/vectorform/Texty'
Expand Down

0 comments on commit 12cf0bf

Please sign in to comment.