Skip to content

Commit

Permalink
Merge pull request #62 from intuit/readmeFix
Browse files Browse the repository at this point in the history
Fix spelling in README
  • Loading branch information
croossin authored Jul 2, 2018
2 parents 6dc96c0 + 1d0a80e commit f0c81b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ slider.rx.value.asObservable().bind(to: sliderViewModel.amount).disposed(by: bag
```

#### `CardPartSpacerView`
Allows you to add a space between card parts incase you need a space larger than the default margin. Initiliaze it with a specific height:
Allows you to add a space between card parts in case you need a space larger than the default margin. Initialize it with a specific height:
```swift
CardPartSpacerView(height: 30)
```
Expand Down Expand Up @@ -809,7 +809,7 @@ Now, whenever the view model's title property value is changed it will automatic
RxSwift use the concept of "Disposable" and "DisposeBag" to remove bindings. Each call to bind returns a Disposable that can be added to a DisposeBag. CardPartsViewController defines an instance of DisposeBag called "bag" that you can use to automatically remove all your bindings when your CardPartsViewController is deallocated. See the RxSwift documentation for more information on disposables and DisposeBags.

## Themes
Out of the box we support 2 themes: Mint and Turbo. These are the 2 Intuit app's that are currently built ontop of CardParts. As you can find in the file `CardPartsTheme.swift` we have a protocol called `CardPartsTheme`. You may create a class that conforms to `CardPartsTheme` and set all properties in order to theme CardParts however you may like. Below is an example of some of the themeable properties:
Out of the box we support 2 themes: Mint and Turbo. These are the 2 Intuit app's that are currently built on top of CardParts. As you can find in the file `CardPartsTheme.swift` we have a protocol called `CardPartsTheme`. You may create a class that conforms to `CardPartsTheme` and set all properties in order to theme CardParts however you may like. Below is an example of some of the themeable properties:
```swift
// CardPartTextView
var smallTextFont: UIFont { get set }
Expand Down

0 comments on commit f0c81b1

Please sign in to comment.