Skip to content

Add methods hCenter(to edge:) and vCenter(to edge:)

Compare
Choose a tag to compare
@lucdion lucdion released this 21 Sep 14:05
· 670 commits to master since this release
  • Add methods to pin hCenter and vCenter to any other view's edges (including the new hCenter and vCenter edges)
    • New methods:
      • func hCenter(to edge: HorizontalEdge) -> PinLayout
      • func vCenter(to edge: VerticalEdge) -> PinLayout
    • New UIView's edges:
      • UIView.edge.hCenter
      • UIView.edge.vCenter

View build details and download artifacts on buddybuild:
PinLayout (iOS, PinLayout)
PinLayoutTVOS (iOS, PinLayoutTVOS)