SDWebImage / SDWebImageSwiftUI

SwiftUI Image loading and Animation framework powered by SDWebImage
https://sdwebimage.github.io/SDWebImageSwiftUI
MIT License
2.21k stars 230 forks source link

Supports the `delayPlaceholder` for WebImage #91

Closed dreampiggy closed 4 years ago

dreampiggy commented 4 years ago

Update the Example to show the usage as well.

Use Case

You can combine both placeholder and indicator at the same time. Which showing the indicator (like Activity) during loading, show the error placeholder when failed.

Design

The .delayPlaceholder will only show placeholder when load failed (image == nil && !isLoading).