Merge pull request #596 from stonerl/update-defaults

Update defaults to 7.3.1
This commit is contained in:
Arkadiusz Fal 2024-01-09 16:55:07 +01:00 committed by GitHub
commit 5ae18a5170
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 10 deletions

View File

@ -116,14 +116,14 @@ struct HomeView: View {
#endif #endif
} }
.onAppear { .onAppear {
Defaults.observe(.favorites) { _ in Task {
for await _ in Defaults.updates(.favorites) {
favoritesChanged.toggle() favoritesChanged.toggle()
} }
.tieToLifetime(of: accounts) for await _ in Defaults.updates(.widgetsSettings) {
Defaults.observe(.widgetsSettings) { _ in
favoritesChanged.toggle() favoritesChanged.toggle()
} }
.tieToLifetime(of: accounts) }
} }
.redrawOn(change: favoritesChanged) .redrawOn(change: favoritesChanged)

View File

@ -4627,7 +4627,7 @@
repositoryURL = "https://github.com/sindresorhus/Defaults"; repositoryURL = "https://github.com/sindresorhus/Defaults";
requirement = { requirement = {
kind = upToNextMajorVersion; kind = upToNextMajorVersion;
minimumVersion = 6.0.0; minimumVersion = 7.0.0;
}; };
}; };
372AA40E286D067B0000B1DC /* XCRemoteSwiftPackageReference "Repeat" */ = { 372AA40E286D067B0000B1DC /* XCRemoteSwiftPackageReference "Repeat" */ = {

View File

@ -32,8 +32,8 @@
"kind" : "remoteSourceControl", "kind" : "remoteSourceControl",
"location" : "https://github.com/sindresorhus/Defaults", "location" : "https://github.com/sindresorhus/Defaults",
"state" : { "state" : {
"revision" : "981ccb0a01c54abbe3c12ccb8226108527bbf115", "revision" : "3efef5a28ebdbbe922d4a2049493733ed14475a6",
"version" : "6.3.0" "version" : "7.3.1"
} }
}, },
{ {