Skip to content

Add support for CALayer layout

Compare
Choose a tag to compare
@lucdion lucdion released this 26 Jun 22:02
· 390 commits to master since this release

PinLayout can now layouts CALayer's. All PinLayout's properties and methods are available, with the following exceptions:

  • sizeToFit(:FitType) is not supported. Support for sizeToFit(:FitType) can be added to your custom CALayer subclasses, just make those layers conform to the SizeCalculable protocol and implement the two required functions.
  • CALayer.pin.safeArea property is not available.
  • aspectRatio() with no parameters

See CALayer Support documentation for more information