Skip to content

Releases: layoutBox/PinLayout

Implementation of minWidth / maxWidth / minHeight / maxHeight / justify / align

10 Jul 00:51
Compare
Choose a tag to compare

Implementation of:

  • minWidth
  • maxWidth
  • minHeight
  • maxHeight
  • justify(:HorizontalAlign)
  • align(:VerticalAlign)

Support Xcode 9 Beta 2

27 Jun 12:15
Compare
Choose a tag to compare
1.1.1

Update version to 1.1.1

Update relative methods signatures when specifying multiple relative views

18 Jun 20:20
Compare
Choose a tag to compare

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)

16 Jun 19:01
Compare
Choose a tag to compare

Implementation of relative positioning using multiple relative views

13 Jun 02:07
Compare
Choose a tag to compare

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

12 Jun 17:53
Compare
Choose a tag to compare
  • 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()

06 Jun 19:27
Compare
Choose a tag to compare

Fix an issue with pin.vCenter() and pin.hCenter()

1.0.6: Merge pull request #32 from mirego/add_more_unit_tests_and_doc

06 Jun 02:22
Compare
Choose a tag to compare

Removed center alignment when distributing sizeToFit() extra width/height.

Fixes + Update Doc

05 Jun 14:04
Compare
Choose a tag to compare
  • 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

03 Jun 10:42
Compare
Choose a tag to compare

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.