Nuke Documentation

Structure Image​Loading​Options.​Content​Modes

public struct ContentModes  

Custom content modes to be used for each image type (placeholder, success, failure).

Member Of

ImageLoadingOptions

A set of options that control how the image is loaded and displayed.

Initializers

init(success:​failure:​placeholder:​)

public init(success: UIView.ContentMode, failure: UIView.ContentMode, placeholder: UIView.ContentMode)  
  • parameter success: A content mode to be used with a loaded image.
  • parameter failure: A content mode to be used with a failureImage.
  • parameter placeholder: A content mode to be used with a placeholder.

Properties

success

public var success: UIView.ContentMode

Content mode to be used for the loaded image.

failure

public var failure: UIView.ContentMode

Content mode to be used when displaying a failureImage.

placeholder

public var placeholder: UIView.ContentMode

Content mode to be used when displaying a placeholder.