Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kean committed Feb 19, 2023
1 parent f5e639e commit da5ca54
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Sources/NukeUI/LazyImage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ public struct LazyImage<Content: View>: View {
.onChange(of: context) { viewModel.load($0?.request) }
}

@ViewBuilder private func makeDefaultContent(for state: LazyImageState) -> some View {
@ViewBuilder
private func makeDefaultContent(for state: LazyImageState) -> some View {
if let image = state.image {
image
} else {
Expand Down Expand Up @@ -183,7 +184,7 @@ struct LazyImage_Previews: PreviewProvider {
static var previews: some View {
Group {
LazyImageDemoView()
.previewDisplayName("LazyImage ")
.previewDisplayName("LazyImage")

LazyImage(url: URL(string: "https://kean.blog/images/pulse/01.png"))
.previewDisplayName("LazyImage (Default)")
Expand Down

0 comments on commit da5ca54

Please sign in to comment.