mirror of
https://github.com/yattee/yattee.git
synced 2024-11-14 18:18:22 +00:00
14 lines
242 B
Swift
14 lines
242 B
Swift
|
import Foundation
|
||
|
import SwiftUI
|
||
|
|
||
|
struct LazyView<Content: View>: View {
|
||
|
let build: () -> Content
|
||
|
init(_ build: @autoclosure @escaping () -> Content) {
|
||
|
self.build = build
|
||
|
}
|
||
|
|
||
|
var body: Content {
|
||
|
build()
|
||
|
}
|
||
|
}
|