mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-29 19:51:08 +00:00
fix build
This commit is contained in:
parent
b2933b8c75
commit
4c7a7986c5
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue