mirror of
https://github.com/yattee/yattee.git
synced 2024-12-15 14:50:32 +05:30
15 lines
243 B
Swift
15 lines
243 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()
|
|
}
|
|
}
|