yattee/Shared/Views/LazyView.swift
2021-09-13 22:44:49 +02:00

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