mirror of
https://github.com/yattee/yattee.git
synced 2025-10-11 09:58:14 +00:00
Search UI fixes
This commit is contained in:
13
Shared/Views/LazyView.swift
Normal file
13
Shared/Views/LazyView.swift
Normal file
@@ -0,0 +1,13 @@
|
||||
import Foundation
|
||||
import SwiftUI
|
||||
|
||||
struct LazyView<Content: View>: View {
|
||||
let build: () -> Content
|
||||
init(_ build: @autoclosure @escaping () -> Content) {
|
||||
self.build = build
|
||||
}
|
||||
|
||||
var body: Content {
|
||||
build()
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user