Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ extension AsyncImageLoadOptions {
options.insert(.avoidDecodeImage)
}

if progressive == true {
options.insert(.progressiveLoad)
}

return options
}

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,17 @@ export interface AsyncImageLoadOptions {
* @default true
*/
allowHardware?: boolean

/**
* By default, images are decoded and displayed once the entire
* image data has been fetched.
*
* To progressively display an image as it loads (web-style),
* enable {@linkcode progressive}.
* @platform iOS
* @default false
*/
progressive?: boolean
}

export interface WebImageFactory
Expand Down
Loading