fix build

This commit is contained in:
Thomas Ricouard 2023-11-01 18:58:19 +01:00
parent b2933b8c75
commit 4c7a7986c5

View file

@ -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. /// 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. /// This views also allows smooth resizing of the images by debouncing the update of the ImageProcessor.
struct LazyResizableImage<Content: View>: View { public struct LazyResizableImage<Content: View>: View {
init(url: URL?, @ViewBuilder content: @escaping (LazyImageState, GeometryProxy) -> Content) { public init(url: URL?, @ViewBuilder content: @escaping (LazyImageState, GeometryProxy) -> Content) {
self.imageURL = url self.imageURL = url
self.content = content self.content = content
} }
@ -24,7 +24,7 @@ struct LazyResizableImage<Content: View>: View {
@ViewBuilder @ViewBuilder
private var content: (LazyImageState, _ proxy: GeometryProxy) -> Content private var content: (LazyImageState, _ proxy: GeometryProxy) -> Content
var body: some View { public var body: some View {
GeometryReader { proxy in GeometryReader { proxy in
LazyImage(url: imageURL) { state in LazyImage(url: imageURL) { state in
content(state, proxy) content(state, proxy)