Use the new crop icon from Compound. (#5691)

This commit is contained in:
Doug
2026-06-03 11:11:39 +01:00
committed by GitHub
parent 939f6a5055
commit e9f66bda37
5 changed files with 13 additions and 13 deletions
@@ -1,13 +1,13 @@
{ {
"originHash" : "523b60263f55a0991f79cf49e6c0c23cd9a39903f32cc2aaf98164215038fa0d", "originHash" : "b61d9d0bd4861f010c6953ae30321be4ae8652ff9aab94e0d2bfbba7769f0ead",
"pins" : [ "pins" : [
{ {
"identity" : "compound-design-tokens", "identity" : "compound-design-tokens",
"kind" : "remoteSourceControl", "kind" : "remoteSourceControl",
"location" : "https://github.com/element-hq/compound-design-tokens", "location" : "https://github.com/element-hq/compound-design-tokens",
"state" : { "state" : {
"revision" : "33a0ad8a14dd07dd1acfcb5a1e77cb8485c594ea", "revision" : "65aaeac72cd81abdc6f363f127667e246c5f4283",
"version" : "10.2.0" "version" : "10.2.1"
} }
}, },
{ {
@@ -167,7 +167,7 @@ struct MediaUploadPreviewScreen: View {
if isCurrentMediaImage { if isCurrentMediaImage {
ToolbarItem(placement: .primaryAction) { ToolbarItem(placement: .primaryAction) {
Button { context.isPresentingMediaEditor = true } label: { Button { context.isPresentingMediaEditor = true } label: {
CompoundIcon(\.editSolid) CompoundIcon(\.crop)
} }
// Fix a bug with the preferredColorScheme on iOS 18 where the button doesn't // Fix a bug with the preferredColorScheme on iOS 18 where the button doesn't
// follow the dark colour scheme on devices running with dark mode disabled. // follow the dark colour scheme on devices running with dark mode disabled.
@@ -1,13 +1,13 @@
{ {
"originHash" : "f1bd760161a06debbba4152a9ad83d70deae74ffe4d91dd85d4d412572c1cde9", "originHash" : "b176ccc5aeb79a3bc3e26b224bb259b7fd4dd0ff8d124a2f4d17d9858b087aa0",
"pins" : [ "pins" : [
{ {
"identity" : "compound-design-tokens", "identity" : "compound-design-tokens",
"kind" : "remoteSourceControl", "kind" : "remoteSourceControl",
"location" : "https://github.com/element-hq/compound-design-tokens.git", "location" : "https://github.com/element-hq/compound-design-tokens.git",
"state" : { "state" : {
"revision" : "33a0ad8a14dd07dd1acfcb5a1e77cb8485c594ea", "revision" : "65aaeac72cd81abdc6f363f127667e246c5f4283",
"version" : "10.2.0" "version" : "10.2.1"
} }
}, },
{ {
@@ -33,8 +33,8 @@
"kind" : "remoteSourceControl", "kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-snapshot-testing", "location" : "https://github.com/pointfreeco/swift-snapshot-testing",
"state" : { "state" : {
"revision" : "a8b7c5e0ed33d8ab8887d1654d9b59f2cbad529b", "revision" : "ad5e3190cc63dc288f28546f9c6827efc1e9d495",
"version" : "1.18.7" "version" : "1.19.2"
} }
}, },
{ {
+3 -3
View File
@@ -1,13 +1,13 @@
{ {
"originHash" : "ae93e5e028f3ecd93929879130e93705035af00e0a6d1e4131fc7b7bee7fd255", "originHash" : "b176ccc5aeb79a3bc3e26b224bb259b7fd4dd0ff8d124a2f4d17d9858b087aa0",
"pins" : [ "pins" : [
{ {
"identity" : "compound-design-tokens", "identity" : "compound-design-tokens",
"kind" : "remoteSourceControl", "kind" : "remoteSourceControl",
"location" : "https://github.com/element-hq/compound-design-tokens", "location" : "https://github.com/element-hq/compound-design-tokens",
"state" : { "state" : {
"revision" : "33a0ad8a14dd07dd1acfcb5a1e77cb8485c594ea", "revision" : "65aaeac72cd81abdc6f363f127667e246c5f4283",
"version" : "10.2.0" "version" : "10.2.1"
} }
}, },
{ {
+1 -1
View File
@@ -9,7 +9,7 @@ let package = Package(
.library(name: "Compound", targets: ["Compound"]) .library(name: "Compound", targets: ["Compound"])
], ],
dependencies: [ dependencies: [
.package(url: "https://github.com/element-hq/compound-design-tokens", exact: "10.2.0"), .package(url: "https://github.com/element-hq/compound-design-tokens", exact: "10.2.1"),
// .package(path: "../compound-design-tokens"), // .package(path: "../compound-design-tokens"),
.package(url: "https://github.com/siteline/SwiftUI-Introspect", from: "26.0.1"), .package(url: "https://github.com/siteline/SwiftUI-Introspect", from: "26.0.1"),
.package(url: "https://github.com/SFSafeSymbols/SFSafeSymbols", from: "7.0.0"), .package(url: "https://github.com/SFSafeSymbols/SFSafeSymbols", from: "7.0.0"),