1
0
mirror of https://github.com/yattee/yattee.git synced 2024-12-13 13:50:32 +05:30
yattee/Shared/Views/LazyView.swift

15 lines
243 B
Swift
Raw Normal View History

2021-09-14 02:11:16 +05:30
import Foundation
import SwiftUI
struct LazyView<Content: View>: View {
let build: () -> Content
2021-09-14 02:11:16 +05:30
init(_ build: @autoclosure @escaping () -> Content) {
self.build = build
}
var body: Content {
build()
}
}