yattee/Shared/Views/LazyView.swift

14 lines
242 B
Swift
Raw Normal View History

2021-09-13 20:41:16 +00:00
import Foundation
import SwiftUI
struct LazyView<Content: View>: View {
let build: () -> Content
init(_ build: @autoclosure @escaping () -> Content) {
self.build = build
}
var body: Content {
build()
}
}