On iOS I want to fill a layer with an image.
The width should be filled and the image should retain its aspect ratio.
layer.contents = image.cgImage
layer.contentsGravity = kCAGravityResizeAspectFill
almost does the right thing - but it positions the image at the centers.
I would like to have it positioned at the top.
While looking at the docs for CALayer I found "autoresizingMask" but that
seems to be macOS only.
Cocoa-dev mailing list (Cocoaemail@example.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to arch...@mail-archive.com