yattee/Shared/Views/LazyView.swift
2021-12-20 00:36:12 +01:00

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()
}
}