Changelog History
Page 3
-
v1.8.2 Changes
August 25, 2018โ Add properties:
๐
pin.readableMargins: UIEdgeInset
:
๐ PinLayout'sUIView.pin.readableMargins
property expose UIKitUIView.readableContentGuide
as an UIEdgeInsets. This is really useful since UIKit only expose the readableContent area to Auto Layout using UILayoutGuide.๐
pin.layoutmargins: UIEdgeInset
๐ PinLayout'sUIView.pin.layoutMargins
property expose directly the value of UIKitUIView.layoutMargins
. The property exists only to be consistent with the other areas:pin.safeArea
,pin.readableMargins
andpin.layoutmargins
. So its usage is not necessary. -
v1.8.1 Changes
August 23, 2018 -
v1.8.0 Changes
August 21, 2018๐ Released on 2018-08-21
๐ Deprecated method
fitSize()
has been removed๐
fitSize()
has been removed after being deprecated for 10 months.sizeToFit(:FitType)
should now be used instead. See Adjusting size.Plus:
-
v1.7.12 Changes
August 16, 2018๐ Released on 2018-08-16
โ Add Animations documentation and example
โ Add documentation that explains how PinLayout can handle view's animations.
-
v1.7.11 Changes
๐ Released on 2018-08-05
Method that position multiple edges now accept an
offset
parameter.The
offset
parameter that specifies the distance from their superview's corresponding edges in pixels.๐ New methods:
topLeft(_ offset: CGFloat)
topCenter(_ topOffset: CGFloat)
topRight(_ offset: CGFloat)
centerLeft(_ leftOffset: CGFloat)
center(_ offset: CGFloat)
centerRight(_ rightOffset offset: CGFloat)
bottomLeft(_ offset: CGFloat)
bottomCenter(_ bottomOffset: CGFloat)
bottomRight(_ offset: CGFloat)
For example, to position a view at the top left corner with a top and left margin of 10 pixels:
view.pin.topLeft(10)
Other change
0๏ธโฃ Cleanup the interface by using default value parameters.
-
v1.7.8 Changes
๐ Released on 2018-06-26
โ Add support for CALayer layout
PinLayout can now layouts CALayer's. All PinLayout's properties and methods are available, with the following exceptions:
- ๐
sizeToFit(:FitType)
is not supported. Support forsizeToFit(:FitType)
can be added to your custom CALayer subclasses, just make those layers conform to theSizeCalculable
protocol and implement the two required functions. - ๐
CALayer.pin.safeArea
property is not available. aspectRatio()
with no parameters
๐ See CALayer Support documentation for more information
- โ Added by Antoine Lamy in Pull Request #151
- ๐
-
v1.7.7 Changes
๐ Released on 2018-06-19
๐จ Refactoring using generics
๐จ Refactoring to avoid having to deal directly with view types, making it easier to extend layouting to other APIs (e.g: CALayer)
- โ Added by Antoine Lamy in Pull Request #148
-
v1.7.6 Changes
๐ Released on 2018-06-12
PinLayout has moved to the layoutBox organization
PinLayout is now part of the same organization as other open source projects related to layout using Swift.
๐จ Refactor source code that handle size adjustment.
โ Add an example using
wrapContent()
methods๐จ Refactor views frame/bounds access