1
0
mirror of https://github.com/metabolist/metatext synced 2025-01-22 23:41:38 +01:00
metatext-app-ios-iphone-ipad/Shared/Views/LazyView.swift
Justin Mazzocchi 7863866f68
Status contexts
2020-08-19 15:16:03 -07:00

18 lines
312 B
Swift

// Copyright © 2020 Metabolist. All rights reserved.
import SwiftUI
struct LazyView<V: View>: View {
typealias RenderClosure = () -> V
let render: RenderClosure
init(_ render: @autoclosure @escaping RenderClosure) {
self.render = render
}
var body: V {
render()
}
}