14 lines
208 B
Swift
14 lines
208 B
Swift
|
import SwiftUI
|
||
|
|
||
|
struct LazyView<Content: View>: View {
|
||
|
private let build: () -> Content
|
||
|
|
||
|
init(_ build: @autoclosure @escaping () -> Content) {
|
||
|
self.build = build
|
||
|
}
|
||
|
|
||
|
var body: Content {
|
||
|
build()
|
||
|
}
|
||
|
}
|