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 withUIView
constraints.โ Adding support for
.left
and.right
EdgeAnchor
s.
๐ฑ โ ๏ธ 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 renamedisActive: 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 isself.view
. -
v1.2 Changes
October 04, 2016This 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, 2016This 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 aSizeAnchor
, or[SizeAnchor]
, depending on the parameter passed in, returningNSLayoutConstraint
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