From 4c7a7986c5578a41884b45a1ea49e9b27ffe7695 Mon Sep 17 00:00:00 2001 From: Thomas Ricouard Date: Wed, 1 Nov 2023 18:58:19 +0100 Subject: [PATCH] fix build --- .../Sources/DesignSystem/Views/LazyResizableImage.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Packages/DesignSystem/Sources/DesignSystem/Views/LazyResizableImage.swift b/Packages/DesignSystem/Sources/DesignSystem/Views/LazyResizableImage.swift index cc5f9c0d..e9098869 100644 --- a/Packages/DesignSystem/Sources/DesignSystem/Views/LazyResizableImage.swift +++ b/Packages/DesignSystem/Sources/DesignSystem/Views/LazyResizableImage.swift @@ -11,8 +11,8 @@ import SwiftUI /// A LazyImage (Nuke) with a geometry reader under the hood in order to use a Resize Processor to optimize performances on lists. /// This views also allows smooth resizing of the images by debouncing the update of the ImageProcessor. -struct LazyResizableImage: View { - init(url: URL?, @ViewBuilder content: @escaping (LazyImageState, GeometryProxy) -> Content) { +public struct LazyResizableImage: View { + public init(url: URL?, @ViewBuilder content: @escaping (LazyImageState, GeometryProxy) -> Content) { self.imageURL = url self.content = content } @@ -24,7 +24,7 @@ struct LazyResizableImage: View { @ViewBuilder private var content: (LazyImageState, _ proxy: GeometryProxy) -> Content - var body: some View { + public var body: some View { GeometryReader { proxy in LazyImage(url: imageURL) { state in content(state, proxy)