Skip to content

Commit

Permalink
Merge pull request #1973 from onevcat/fix/empty-placeholder-loading
Browse files Browse the repository at this point in the history
Overlay the placeholder view to allow onAppear executing
  • Loading branch information
onevcat authored Jul 30, 2022
2 parents 2235a22 + e07e3cd commit 7046ecf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/SwiftUI/KFImageRenderer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ struct KFImageRenderer<HoldingView> : View where HoldingView: KFImageHoldingView
if binder.loadedImage == nil {
Group {
if let placeholder = context.placeholder, let view = placeholder(binder.progress) {
view
Color.clear.overlay(view)
} else {
Color.clear
}
Expand Down

0 comments on commit 7046ecf

Please sign in to comment.