Kingfisher Documentation

Enumeration Content​Mode

public enum ContentMode  

Represents how a size adjusts itself to fit a target size.

  • none: Not scale the content.

  • aspectFit: Scales the content to fit the size of the view by maintaining the aspect ratio.

  • aspectFill: Scales the content to fill the size of the view.

Enumeration Cases

none

case none

Not scale the content.

aspect​Fit

case aspectFit

Scales the content to fit the size of the view by maintaining the aspect ratio.

aspect​Fill

case aspectFill

Scales the content to fill the size of the view.