Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/toni77777/pinanchor
PinAnchor is a library to make views layout easy on iOS and macOS. The library is based on Anchors
https://github.com/toni77777/pinanchor
anchor autolayout ios macos nsview swift uiview
Last synced: 26 days ago
JSON representation
PinAnchor is a library to make views layout easy on iOS and macOS. The library is based on Anchors
- Host: GitHub
- URL: https://github.com/toni77777/pinanchor
- Owner: Toni77777
- License: mit
- Created: 2021-07-24T11:04:35.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-07-25T20:34:01.000Z (over 3 years ago)
- Last Synced: 2024-10-20T08:40:32.195Z (2 months ago)
- Topics: anchor, autolayout, ios, macos, nsview, swift, uiview
- Language: Swift
- Homepage:
- Size: 349 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PinAnchor
# Usage
## Quick Start
```swift
import PinAnchor
let greenView = UIView()
greenView.backgroundColor = .green
view.addSubview(greenView)
greenView.translatesAutoresizingMaskIntoConstraints = falsegreenView
.pinToTop(inset: 50)
.pinToLeft(inset: 30)
.pinToRight(inset: 30)
.pinToBottom(inset: 50)
```# Installation
## CocoaPods
```
pod 'PinAnchor', '~> 1.0'
```PinAnchor is released under the MIT license.