Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
struct LazyView<Content: View>: View {
let build: () -> Content
init(_ build: @autoclosure @escaping () -> Content) { = build
var body: Content {

This comment has been minimized.

Copy link

ahmetws commented Nov 21, 2019

Thanks for the code, Chris 👍
Here is the relevant discussion:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.