Skip to content

Commit

Permalink
Update Swift (#99)
Browse files Browse the repository at this point in the history
* Update Swift

* Handle API breaks and update Package.resolved files.

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Doug <douglase@element.io>
  • Loading branch information
renovate[bot] and pixlwave authored Jul 23, 2024
1 parent 4c682f4 commit 22d1bc1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
},
{
Expand Down Expand Up @@ -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"
}
}
],
Expand Down
8 changes: 4 additions & 4 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
},
{
Expand Down Expand Up @@ -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"
}
}
],
Expand Down
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion Sources/Compound/Text Field Styles/SearchFieldStyle.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit 22d1bc1

Please sign in to comment.