PinLayout v1.6.0 Release Notes

  • ๐Ÿš€ Released on 2018-03-22

    ๐Ÿ“Œ UIView.pin.safeArea

    ๐Ÿš€ PinLayout can handle easily iOS 11 UIView.safeAreaInsets, but it goes further by supporting safeAreaInsets for previous iOS releases (including iOS 7/8/9/10) by adding a property UIView.pin.safeArea. PinLayout also extend the support of UIView.safeAreaInsetsDidChange() callback on iOS 7/8/9/10.

    ๐Ÿ“š See UIView.pin.safeArea Documentation for more details.

    โž• Added by Luc Dion in Pull Request #125

    โž• Add methods taking UIEdgeInset as parameter

    • all(_ insets: UIEdgeInsets)
    • horizontally(_ insets: UIEdgeInsets)
    • vertically(_ insets: UIEdgeInsets)
    • top(_ insets: UIEdgeInsets)
    • bottom(_ insets: UIEdgeInsets)
    • left(_ insets: UIEdgeInsets)
    • right(_ insets: UIEdgeInsets)

      See Layout using distances from superviewโ€™s edges for more details.

      Added by Luc Dion in Pull Request #125

    โž• Add margins method with percentage parameter

    • marginTop(_ percent: Percent)
    • marginLeft(_ percent: Percent)
    • marginBottom(_ percent: Percent)
    • marginLeft(_ percent: Percent)
    • marginStart(_ percent: Percent)
    • marginEnd(_ percent: Percent)
    • marginHorizontal(_ percent: Percent)
    • marginVertical(_ percent: Percent)
    • margin(_ percent: Percent)
    • margin(_ vertical: Percent, _ horizontal: Percent)
    • margin(_ top: Percent, _ horizontal: Percent, _ bottom: Percent)
    • margin(_ top: Percent, _ left: Percent, _ bottom: Percent, _ right: Percent)

      Added by vandyshev in Pull Request #126