Type Property

resizeAspectFill

The content is resized to completely fill the bounds rectangle, while still preserving the aspect of the content. The content is centered in the axis it exceeds.

Declaration

static let resizeAspectFill: CALayerContentsGravity