Skip to content

PinAnchor is a library to make views layout easy on iOS and macOS. The library is based on Anchors

License

Notifications You must be signed in to change notification settings

Toni77777/PinAnchor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PinAnchor

Usage

Quick Start

import PinAnchor

let greenView = UIView()
greenView.backgroundColor = .green
view.addSubview(greenView)
greenView.translatesAutoresizingMaskIntoConstraints = false

greenView
    .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.

About

PinAnchor is a library to make views layout easy on iOS and macOS. The library is based on Anchors

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published