Skip to content

Warnings now display more context information

Choose a tag to compare

@lucdion lucdion released this 30 Aug 14:06
· 700 commits to master since this release

*Warnings now display more context information:

  • The class name of the view being layouted.

  • The view's current frame

  • The class name of all its superviews

  • The view's Tag

    Examples:

    • 👉 PinLayout Warning: width(50.0%) won't be applied, the view (UIView) must be added as a sub-view before being layouted using this method.
      (Layouted view info: Type: UIView, Frame: (10.0, 10.0, 20.0, 30.0), Tag: 0)

    • 👉 PinLayout Warning: width(-20.0) won't be applied, the width (-20.0) must be greater than or equal to zero.
      (Layouted view info: Type: ItemButton, Frame: (140.0, 100.0, 100.0, 60.0), Superviews: HomeView -> UIView, Tag: 0)

    • 👉 PinLayout Warning: topLeft(to: .topLeft, of: (UIView, Frame: (10.0, 10.0, 10.0, 10.0))) won't be applied, the reference view (UIView, Frame: (10.0, 10.0, 10.0, 10.0)) must be added as a sub-view before being used as a reference.
      (Layouted view info: Type: UIView, Frame: (140.0, 100.0, 100.0, 60.0), Superviews: UIView -> UIView, Tag: 0)

    • Added by Luc Dion in Pull Request #75

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