mirror of
https://github.com/yJason/ClashX-Dashboard.git
synced 2026-02-04 10:02:26 +08:00
misc: Update SwiftUIIntrospect
This commit is contained in:
@@ -68,8 +68,8 @@
|
||||
"kind" : "remoteSourceControl",
|
||||
"location" : "https://github.com/siteline/SwiftUI-Introspect.git",
|
||||
"state" : {
|
||||
"revision" : "67e2a59be1cf1c6dc4bb7a861cbea888d423bb78",
|
||||
"version" : "0.5.2"
|
||||
"revision" : "ccb973cfff703cba53fb88197413485c060eb26b",
|
||||
"version" : "0.10.0"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@@ -22,7 +22,7 @@ let package = Package(
|
||||
.package(url: "https://github.com/CocoaLumberjack/CocoaLumberjack.git", from: "3.0.0"),
|
||||
.package(url: "https://github.com/ra1028/DifferenceKit.git", from: "1.0.0"),
|
||||
.package(url: "https://github.com/dagronf/DSFSparkline.git", from: "4.0.0"),
|
||||
.package(url: "https://github.com/siteline/SwiftUI-Introspect.git", from: "0.2.3"),
|
||||
.package(url: "https://github.com/siteline/swiftui-introspect", from: "0.10.0"),
|
||||
],
|
||||
targets: [
|
||||
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
|
||||
@@ -35,7 +35,7 @@ let package = Package(
|
||||
.product(name: "CocoaLumberjackSwift", package: "CocoaLumberjack"),
|
||||
"DifferenceKit",
|
||||
"DSFSparkline",
|
||||
.product(name: "Introspect", package: "SwiftUI-Introspect"),
|
||||
.product(name: "SwiftUIIntrospect", package: "swiftui-introspect"),
|
||||
"Starscream",
|
||||
"SwiftyJSON",
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
import Introspect
|
||||
import SwiftUIIntrospect
|
||||
|
||||
struct APISettingView: View {
|
||||
@State var baseURL: String = ""
|
||||
@@ -62,7 +62,7 @@ struct APISettingView: View {
|
||||
}
|
||||
}
|
||||
}
|
||||
.introspectTableView {
|
||||
.introspect(.table, on: .macOS(.v12, .v13, .v14)) {
|
||||
$0.backgroundColor = NSColor.clear
|
||||
$0.enclosingScrollView?.drawsBackground = false
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
import SwiftUIIntrospect
|
||||
|
||||
struct ProvidersView: View {
|
||||
@ObservedObject var providerStorage = DBProviderStorage()
|
||||
@@ -71,7 +72,7 @@ struct ProvidersView: View {
|
||||
}
|
||||
}
|
||||
}
|
||||
.introspectTableView {
|
||||
.introspect(.table, on: .macOS(.v12, .v13, .v14)) {
|
||||
$0.refusesFirstResponder = true
|
||||
$0.doubleAction = nil
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
import Introspect
|
||||
import SwiftUIIntrospect
|
||||
|
||||
class ProxiesSearchString: ObservableObject, Identifiable {
|
||||
let id = UUID().uuidString
|
||||
@@ -26,7 +26,7 @@ struct ProxiesView: View {
|
||||
List(proxyStorage.groups, id: \.id) { group in
|
||||
ProxyGroupRowView(proxyGroup: group)
|
||||
}
|
||||
.introspectTableView {
|
||||
.introspect(.table, on: .macOS(.v12, .v13, .v14)) {
|
||||
$0.refusesFirstResponder = true
|
||||
$0.doubleAction = nil
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
import Introspect
|
||||
import SwiftUIIntrospect
|
||||
|
||||
struct SidebarListView: View {
|
||||
|
||||
@@ -59,7 +59,7 @@ struct SidebarListView: View {
|
||||
}
|
||||
|
||||
}
|
||||
.introspectTableView {
|
||||
.introspect(.table, on: .macOS(.v12, .v13, .v14)) {
|
||||
$0.refusesFirstResponder = true
|
||||
|
||||
if selectionName == nil {
|
||||
|
||||
Reference in New Issue
Block a user