Releases: layoutBox/PinLayout
Implementation of minWidth / maxWidth / minHeight / maxHeight / justify / align
Implementation of:
- minWidth
- maxWidth
- minHeight
- maxHeight
- justify(:HorizontalAlign)
- align(:VerticalAlign)
Support Xcode 9 Beta 2
1.1.1 Update version to 1.1.1
Update relative methods signatures when specifying multiple relative views
Update the minor version due to a small breaking change with methods above(of…), below(of…), left(of…) and right(of…). They now takes either a single UIView or an Array of UIViews.
Add tvOS support & set iOS target to 8.0 (instead of 10.2)
1.0.15 Update version to 1.0.15
Implementation of relative positioning using multiple relative views
Change
- Implementation of relative positioning using multiple relative views
- Added by Luc Dion in Pull Request #43
- The following methods can now receives one or many relative views. Useful to position a view relative to many UIViews.
above(of relativeViews: UIView...)
above(of relativeViews: UIView..., aligned: HorizontalAlignment)
below(of relativeViews: UIView...)
below(of relativeViews: UIView..., aligned: HorizontalAlignment)
left(of relativeViews: UIView...)
left(of relativeViews: UIView..., aligned: VerticalAlignment)
right(of relativeViews: UIView...)
right(of relativeViews: UIView..., aligned: VerticalAlignment)
Swift Package Manager support + size(…) method update
-
size(…) methods now tries to apply the width and the height individually
Previously the size specified was applied only if both the width and height wasn’t specified. Now PinLayout will apply them individually, so if the width has been specified yet, the size’s width will be applied, else a warning will be displayed that indicate that the width won’t be applied. Same thing for the height. -
Add Swift Package Manager support
-
Doesn’t display a warning anymore if the new specified width or height value is equal to the currently set value. This is coherent with other methods (top, left, hCenter, ….)
-
Clean up size(...) methods source code
-
Add PinLayout's performance documentation
Fix an issue with pin.vCenter() and pin.hCenter()
Fix an issue with pin.vCenter()
and pin.hCenter()
1.0.6: Merge pull request #32 from mirego/add_more_unit_tests_and_doc
Removed center alignment when distributing sizeToFit() extra width/height.
Fixes + Update Doc
- Fix sizeToFit() method when margins was specified.
- sizeToFit() adjusted extra size is now distributed correctly to match the layout.
- Fix margins issues in some usage utilisation
- Add a generic intro example in the documentation.
- Update sample app
Methods with percentages
It is now possible to user ‘%’ characters.
ex:
view.pin.top().left(25%).width(25%).height(100%)
- width(_ percent: Percent)
- height(_ percent: Percent)
- size(_ percent: Percent)
- top(_ percent: Percent)
- left(_ percent: Percent)
- bottom(_ percent: Percent)
- right(_ percent: Percent)
- hCenter(_ percent: Percent)
- vCenter(_ percent: Percent)
Plus:
- size(_ sideLength: CGFloat)
- Implement hCenter() & vCenter()
- Implement margin(_ vertical: CGFloat, _ horizontal: CGFloat) & margin(_ top: CGFloat, _ horizontal: CGFloat, _ bottom: CGFloat)
- Add more unit tests
- Removed few forced optionals
- Removed deprecated UIView+PinLayout extension.