All Versions
65
Latest Version
Avg Release Cycle
40 days
Latest Release
-
Changelog History
Page 6
Changelog History
Page 6
-
v1.3.0 Changes
๐ Released on 2017-08-18.
๐ Change
- ๐ฅ Breaking change related to hCenter(CGFloat), hCenter(percent), vCenter(CGFloat), vCenter(percent):
vCenter(_ value: CGFloat)
andvCenter(_ percent: Percent)
:
The value specifies the distance vertically of the view's center related to the superview's center in pixels. Previously it was related to the superview's top edge.hCenter(_ value: CGFloat)
andhCenter(_ percent: Percent)
:
The value specifies the distance horizontally of the view's center related to the superview's center in pixels. Previously it was related to the superview's left edge.
๐ป Previously
hCenter(0)
wasn't equal tohCenter()
, same thing forvCenter(0)
. But this was an exception:top(0)
==top()
,left(0)
==left()
,right(0)
==right()
. Now thay all have the same logic. - ๐ฅ Breaking change related to hCenter(CGFloat), hCenter(percent), vCenter(CGFloat), vCenter(percent):
-
v1.2.4 Changes
๐ Change
- โ Add methods to pin hCenter and vCenter to any other view's edges (including the new hCenter and vCenter edges)
- New methods:
hCenter(to: edge)
Position horizontally the view's center directly on another viewโs edge (left/hCenter/right)vCenter(to: edge)
Position vertically the view's center directly on another viewโs edge (top/vCenter/bottom).
- New UIView's edges:
-
UIView.edge.hCenter
-
UIView.edge.vCenter
-
- Added by Luc Dion in Pull Request #80
- New methods:
- โ Add methods to pin hCenter and vCenter to any other view's edges (including the new hCenter and vCenter edges)
-
v1.2.3 Changes
๐ Change
โ Warnings now display more context information
- The class name of the view being layouted.
- The view's current frame
- The class name of all superviews
- The view's Tag
Examples:
- ๐ PinLayout Warning: width(50.0%) won't be applied, the view (UIView) must be added as a sub-view before being layouted using this method.
(Layouted view info: Type: UIView, Frame: (10.0, 10.0, 20.0, 30.0), Tag: 0) - ๐ PinLayout Warning: width(-20.0) won't be applied, the width (-20.0) must be greater than or equal to zero.
(Layouted view info: Type: ItemButton, Frame: (140.0, 100.0, 100.0, 60.0), Superviews: HomeView -> UIView, Tag: 0) - ๐ PinLayout Warning: topLeft(to: .topLeft, of: (UIView, Frame: (10.0, 10.0, 10.0, 10.0))) won't be applied, the reference view (UIView, Frame: (10.0, 10.0, 10.0, 10.0)) must be added as a sub-view before being used as a reference.
(Layouted view info: Type: UIView, Frame: (140.0, 100.0, 100.0, 60.0), Superviews: UIView -> UIView, Tag: 0) - Added by Luc Dion in Pull Request #75
-
v1.2.2 Changes
๐ Change
- โ Added a new method
fitSize()
that will replace thesizeThatFit()
method. Its prior name was creating confusion with the already existingUIView.sizeToFit()` method. - ๐
sizeThatFit()
method has been marked as deprecated.
- โ Added a new method
-
v1.2.1 Changes
๐ Change
- โ Add Swift 4.0 support
- โ Add Swift 4.0 support
-
v1.2.0 Changes
๐ Released on 2017-08-18.
๐ Change
๐ฅ Breaking change related to the following anchor's name. The change makes these anchor's name more standard:
- UIView.anchors.leftCenter has been renamed UIView.anchors.centerLeft
- UIView.anchors.rightCenter has been renamed UIView.anchors.centerRight
โ Add left to right (LTR) and right to left (RTL) language support.
โ Additions:- Pin.layoutDirection(_ direction: LayoutDirection)
- start(), start(_ value: CGFloat), start(_ percent: Percent)
- end(), end(_ value: CGFloat), end(_ percent: Percent)
- UIView.edge.start
- UIView.edge.end
- UIView.anchor.topStart
- UIView.anchor.topEnd
- UIView.anchor.centerStart
- UIView.anchor.centerEnd
- UIView.anchor.bottomStart
- UIView.anchor.bottomEnd
- topStart(to anchor: Anchor), topStart()
- topEnd(to anchor: Anchor), topEnd()
- centerStart(to anchor: Anchor), centerStart()
- centerEnd(to anchor: Anchor), centerEnd()
- bottomStart(to anchor: Anchor), bottomStart()
- bottomEnd(to anchor: Anchor), bottomEnd()
- before(of: UIView), before(of: [UIView])
- before(of: UIView, aligned: VerticalAlign), before(of: [UIView], aligned: VerticalAlign)
- after(of: UIView), after(of: [UIView])
- after(of: UIView, aligned: VerticalAlign), after(of: [UIView], aligned: VerticalAlign)
- marginStart(_ value: CGFloat)
- marginEnd(_ value: CGFloat)
- HorizontalAlign.start
- HorizontalAlign.end
- Added by Luc Dion in Pull Request #56
-
v1.1.1 Changes
๐ Released on 2017-06-27.
๐ Change
- Support Xcode 9 Beta 2
- โ Add a Form example