diff --git a/README.md b/README.md index 1ff6e92..99d6650 100644 --- a/README.md +++ b/README.md @@ -6,11 +6,6 @@ [![Platform](https://img.shields.io/cocoapods/p/TinyLayout.svg)](https://cocoapods.org/pods/TinyLayout) [![Downloads](https://img.shields.io/cocoapods/dt/TinyLayout.svg)](https://cocoapods.org/pods/TinyLayout) - -## Example - -To run the example project, clone the repo, and run `pod install` from the Example directory first. - ## Installation TinyLayout is available through [CocoaPods](https://cocoapods.org). To install @@ -20,6 +15,18 @@ it, simply add the following line to your Podfile: pod 'TinyLayout' ``` +## Usage + +```swift +container.fill(superView) +titleLabel.leading(to: container.leading, constant: 15).top(to: container.top, constant: 10).trailing(to: container.trailing, constant: -15) +subTitle.leading(to: titleLabel.leading).top(to: titleLabel.bottom, constant: 10).width(to: titleLabel.width) +``` + +## Example + +To run the example project, clone the repo, and run `pod install` from the Example directory first. + ## Author Sinet Group, http://sinetgroup.ru/