feat: search support

This commit is contained in:
mrFq1
2023-05-18 15:20:27 +08:00
parent e23239ecd9
commit 088fc47329
5 changed files with 52 additions and 25 deletions
@@ -8,16 +8,16 @@ import SwiftUI
struct ProxyItemView: View {
@Binding var proxy: DBProxy
@ObservedObject var proxy: DBProxy
@State var selectable: Bool
@EnvironmentObject var hideProxyNames: HideProxyNames
init(proxy: Binding<DBProxy>, selectable: Bool) {
self._proxy = proxy
init(proxy: DBProxy, selectable: Bool) {
self.proxy = proxy
self.selectable = selectable
self.isBuiltInProxy = [.pass, .direct, .reject].contains(proxy.wrappedValue.type)
self.isBuiltInProxy = [.pass, .direct, .reject].contains(proxy.type)
}
@State private var isBuiltInProxy: Bool