diff --git a/Inspector/Inspector.xcworkspace/xcshareddata/swiftpm/Package.resolved b/Inspector/Inspector.xcworkspace/xcshareddata/swiftpm/Package.resolved index 8955303..cabe142 100644 --- a/Inspector/Inspector.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/Inspector/Inspector.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -5,8 +5,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/element-hq/compound-design-tokens.git", "state" : { - "revision" : "5350cf2871ef7edcf043ef57b8990858463db51b", - "version" : "1.6.0" + "revision" : "87aae094fd50064f944cf26bf1e8d593f68efabe", + "version" : "1.6.1" } }, { @@ -50,8 +50,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/siteline/SwiftUI-Introspect.git", "state" : { - "revision" : "668a65735751432b640260c56dfa621cec568368", - "version" : "1.2.0" + "revision" : "807f73ce09a9b9723f12385e592b4e0aaebd3336", + "version" : "1.3.0" } } ], diff --git a/Package.resolved b/Package.resolved index 46f967d..acbb24d 100644 --- a/Package.resolved +++ b/Package.resolved @@ -5,8 +5,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/element-hq/compound-design-tokens", "state" : { - "revision" : "5350cf2871ef7edcf043ef57b8990858463db51b", - "version" : "1.6.0" + "revision" : "87aae094fd50064f944cf26bf1e8d593f68efabe", + "version" : "1.6.1" } }, { @@ -50,8 +50,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/siteline/SwiftUI-Introspect.git", "state" : { - "revision" : "668a65735751432b640260c56dfa621cec568368", - "version" : "1.2.0" + "revision" : "807f73ce09a9b9723f12385e592b4e0aaebd3336", + "version" : "1.3.0" } } ], diff --git a/Package.swift b/Package.swift index fa866a6..35f5db9 100644 --- a/Package.swift +++ b/Package.swift @@ -9,8 +9,8 @@ let package = Package( .library(name: "Compound", targets: ["Compound"]) ], dependencies: [ - .package(url: "https://github.com/element-hq/compound-design-tokens", exact: "1.6.0"), - .package(url: "https://github.com/siteline/SwiftUI-Introspect", from: "1.2.0"), + .package(url: "https://github.com/element-hq/compound-design-tokens", exact: "1.6.1"), + .package(url: "https://github.com/siteline/SwiftUI-Introspect", from: "1.3.0"), .package(url: "https://github.com/SFSafeSymbols/SFSafeSymbols", from: "5.3.0"), .package(url: "https://github.com/BarredEwe/Prefire", from: "2.8.0"), .package(url: "https://github.com/pointfreeco/swift-snapshot-testing", from: "1.17.2") diff --git a/Sources/Compound/Text Field Styles/SearchFieldStyle.swift b/Sources/Compound/Text Field Styles/SearchFieldStyle.swift index e271604..9731af8 100644 --- a/Sources/Compound/Text Field Styles/SearchFieldStyle.swift +++ b/Sources/Compound/Text Field Styles/SearchFieldStyle.swift @@ -20,7 +20,7 @@ import SwiftUIIntrospect public extension View { /// Styles a search bar text field using the Compound design tokens. /// This modifier is to be used in combination with `.searchable`. - func compoundSearchField() -> some View { + @MainActor func compoundSearchField() -> some View { introspect(.navigationStack, on: .supportedVersions, scope: .ancestor) { navigationController in // Uses the navigation stack as .searchField is unreliable when pushing the second search bar, during the create rooms flow. guard let searchController = navigationController.navigationBar.topItem?.searchController else { return }