aspectFill
aspectFill is a content mode used in user interface development, particularly in frameworks like UIKit for iOS and AppKit for macOS. It dictates how an image or other content should be resized to fit within a specified frame or boundary while preserving its original aspect ratio. When aspectFill is applied, the content is scaled so that its smallest dimension (either width or height) matches the corresponding dimension of the frame. The content is then clipped as necessary to ensure that the entire frame is filled, but without distorting the original proportions of the image. This means that some parts of the content might be cut off if the aspect ratio of the content does not match the aspect ratio of the frame. The goal of aspectFill is to ensure that the image is visible and fills the designated area as much as possible without stretching or squashing it. It is often used when precise fitting within a certain area is important and some cropping is acceptable.