Skip to content

Improve DSL Experience when working with UIScrollView and other complex UIViews

Compare
Choose a tag to compare
@Adobels Adobels released this 30 Oct 17:50
· 4 commits to main since this release
6eb6653

What's Changed

  • ibSubviews's superview is typed with the parent class, which means it's able to set constraints with a custom UILayoutGuide.
  • Update involvesOwnerView to allow setting constraints between the frame and content of UIScrollView, for example.
  • Add IBView subclass of UIView to avoid overriding init methods in subclasses of UIView.
  • ibAttributes supports all types of syntaxes due to the support of Any? in @NSLayoutConstraintBuilder."
  • Add more unit tests.