Anchorman v3.0 Release Notes
Release Date: 2017-09-19 // almost 7 years ago-
๐ฑ 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)