mirror of
https://github.com/yJason/ClashX-Dashboard.git
synced 2026-03-01 00:35:19 +08:00
33 lines
503 B
Swift
33 lines
503 B
Swift
//
|
|
// ConnectionsView.swift
|
|
// ClashX Dashboard
|
|
//
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct ConnectionsView: View {
|
|
|
|
@EnvironmentObject var data: ClashConnsStorage
|
|
|
|
@State private var searchString: String = ""
|
|
|
|
var body: some View {
|
|
|
|
CollectionsTableView(data: data.conns,
|
|
filterString: searchString)
|
|
.background(.white)
|
|
.searchable(text: $searchString)
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
struct ConnectionsView_Previews: PreviewProvider {
|
|
static var previews: some View {
|
|
ConnectionsView()
|
|
}
|
|
}
|