https://github.com/noppefoxwolf/textcontainerlayoutguide
Easily put something around text using AutoLayout.
https://github.com/noppefoxwolf/textcontainerlayoutguide
Last synced: 11 months ago
JSON representation
Easily put something around text using AutoLayout.
- Host: GitHub
- URL: https://github.com/noppefoxwolf/textcontainerlayoutguide
- Owner: noppefoxwolf
- License: mit
- Created: 2018-10-25T20:16:56.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-26T12:14:36.000Z (over 7 years ago)
- Last Synced: 2024-05-02T05:46:16.448Z (about 2 years ago)
- Language: Swift
- Homepage:
- Size: 1.34 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 📝 TextContainerLayoutGuide
[](https://travis-ci.org/noppefoxwolf/TextContainerLayoutGuide)
[](https://cocoapods.org/pods/TextContainerLayoutGuide)
[](https://cocoapods.org/pods/TextContainerLayoutGuide)
[](https://cocoapods.org/pods/TextContainerLayoutGuide)

# How to use it
Simply constrain your views to the TextContainerLayoutGuide's anchors.
```swift
footerView.topAnchor.constraint(equalTo: textView.textContainerLayoutGuide.bottomAnchor).isActive = true
```
Place view in footer of UITextView
## Installation
### Cococapods
TextContainerLayoutGuide is available through [CocoaPods](https://cocoapods.org). To install
it, simply add the following line to your Podfile:
```ruby
pod 'TextContainerLayoutGuide'
```
### Carthage
```
github "noppefoxwolf/TextContainerLayoutGuide"
```
## Author
noppefoxwolf, noppelabs@gmail.com
## License
TextContainerLayoutGuide is available under the MIT license. See the LICENSE file for more info.