All Versions
11
Latest Version
Avg Release Cycle
133 days
Latest Release
1552 days ago

Changelog History
Page 1

  • v3.2.0 Changes

    January 19, 2020
    • โž• Adding support for Swift 5.1.
    • โž• Adding SPM support.
    • โš  Cleaning up redundant public access level warnings.
  • v3.1 Changes

    December 24, 2018
    • โž• Adding support for Swift 4.2.
  • v3.0 Changes

    September 19, 2017

    ๐Ÿฑ The underlying framework is completely rewritten. If you find any bugs, please report them. ๐Ÿ›

    ๐Ÿ‘ This version is written in and supports Swift 4. If you need to use Swift 3, use version 2.0 of Anchorman instead.


    ๐Ÿ†• New Features

    ๐Ÿ‘ Anchorman now supports UILayoutGuide along with UIView constraints.

    โž• Adding support for .left and .right EdgeAnchors.


    ๐Ÿฑ โš ๏ธ Breaking changes โš ๏ธ

    โœ‚ Removed func translateAutoresizingMasks(on: Bool)

    โœ‚ Removed static func activateAllConstraints(constraints: [[NSLayoutConstraint]])

    โœ‚ Removed static func deactivateAllConstraints(constraints: [[NSLayoutConstraint]])

    For functions that had a parameter activate: Bool, it has now been renamed isActive: Bool.

    ๐Ÿ“Œ API changes for pinning

    func pinToSuperview(_ edges: [EdgeAnchor], relation: NSLayoutRelation, activate: Bool) -> [NSLayoutConstraint]

    func pinToSuperview(_ edges: [EdgeAnchor], relation: NSLayoutRelation, isActive: Bool) -> [NSLayoutConstraint]


    ๐Ÿ“Œ func pin(toView view: UIView, edges: [EdgeAnchor], relation: NSLayoutRelation, activate: Bool) -> [NSLayoutConstraint]

    ๐Ÿ“Œ func pin(to view: UIView, edges: [EdgeAnchor], relation: NSLayoutRelation, isActive: Bool) -> [NSLayoutConstraint]


    ๐Ÿ“Œ func pin(edge: EdgeAnchor, toEdge: EdgeAnchor, ofView view: UIView, relation: NSLayoutRelation, constant: CGFloat, priority: UILayoutPriority, activate: Bool) -> NSLayoutConstraint

    ๐Ÿ“Œ func pin(edge: EdgeAnchor, toEdge: EdgeAnchor, of view: UIView, relation: NSLayoutRelation = .equal, constant: CGFloat, priority: UILayoutPriority, isActive: Bool) -> NSLayoutConstraint


    func set(size sizeAnchor: SizeAnchor, relation: NSLayoutRelation, activate: Bool) -> NSLayoutConstraint

    func set(size sizeAnchor: SizeAnchor, relation: NSLayoutRelation, isActive: Bool) -> NSLayoutConstraint


    func set(size sizeAnchors: [SizeAnchor] = [SizeAnchor.width, SizeAnchor.height], relation: NSLayoutRelation, activate: Bool) -> [NSLayoutConstraint]

    func set(size sizeAnchors: [SizeAnchor] = [SizeAnchor.width, SizeAnchor.height], relation: NSLayoutRelation, isActive: Bool) -> [NSLayoutConstraint]


    func set(relativeSize sizeAnchor: SizeAnchor, toSizeAnchor: SizeAnchor, ofView view: UIView, multiplier: CGFloat, constant: CGFloat, relation: NSLayoutRelation, activate: Bool) -> NSLayoutConstraint

    func set(relativeSize sizeAnchor: SizeAnchor, toSizeAnchor: SizeAnchor, ofAnchorable anchorable: Anchorable, multiplier: CGFloat, constant: CGFloat, relation: NSLayoutRelation, isActive: Bool)

  • v2.0 Changes

    December 03, 2016

    ๐Ÿš€ This release is a completely breaking change to the API.

    ๐Ÿš€ โ€ข The library is now compatible with Swift 3 only. The previous release will continue to work with Swift 2.2.

  • v1.2.1 Changes

    October 04, 2016

    ๐Ÿ“Œ โ€ข Fixes a bug that set self.translatesAutoresizingMaskIntoConstraints = false onto the view being pinned to, which is bad when the view is self.view.

  • v1.2 Changes

    October 04, 2016

    This version supports Swift 3, but not 2.2 or 2.3.

    โšก๏ธ Your code that compiled for Swift 2.2 or 2.3 should not change, and remains compatible. A future update will add Swift 3 naming conventions into the code.

    ๐Ÿ‘ โ€ข Brings the library support to 3.0.
    โ€ข Code clean up.

  • v1.1.2 Changes

    July 16, 2016

    This version supports Swift 2.2 and 2.3, but not 3.

    โ€ข Removing an unused variable. ยฏ_(ใƒ„)_/ยฏ

  • v1.1.1 Changes

    July 06, 2016

    ๐Ÿ‘ โ€ข Adding setRelativeSize for multiplier support.
    โ€ข Fixing uncaught EdgeAnchors.

  • v1.1 Changes

    June 25, 2016

    โ€ข setSize now overloads allowing to take in either a SizeAnchor, or [SizeAnchor], depending on the parameter passed in, returning NSLayoutConstraint and [NSLayoutConstraint] respectively.

    ๐Ÿ“Œ โ€ข Breaking change: .allEdges has been renamed to .allSides, since those semantics are representative of pinning a view's .leading, .trailing, .top, and .bottom edges.

  • v1.0.1 Changes

    June 03, 2016

    โž• Adding support for NSLayoutRelations, .Equal, .GreaterThanOrEqual, and .LessThanOrEqual