Skip to content

Added the onStart callback to SwiftUI.LazyImage#736

Merged
kean merged 2 commits into
kean:mainfrom
urbaneewe:improvement/add_onStart
Nov 18, 2023
Merged

Added the onStart callback to SwiftUI.LazyImage#736
kean merged 2 commits into
kean:mainfrom
urbaneewe:improvement/add_onStart

Conversation

@urbaneewe

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread Sources/NukeUI/FetchImage.swift Outdated
}
}

if let task = imageTask {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The task is always going to be empty at this point, to it's not going to get called. I'm not entire sure why I added this load() variant in the first place, to be honest, but I think it would be acceptable to not call onStart here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, I agree, I wasn't sure if you had something planned so I added it just in case. I'll remove it

@kean

kean commented Nov 18, 2023

Copy link
Copy Markdown
Owner

Hey, thanks for fixing the typos as well, @urbaneewe; merging.

@kean kean merged commit cb57874 into kean:main Nov 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants