Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Examples/Reminders/TagsForm.swift
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ private struct TagView: View {
} label: {
HStack {
if isSelected {
Image.init(systemName: "checkmark")
Image(systemName: "checkmark")
}
Text(tag.title)
}
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ let package = Package(
.trait(
name: "SQLiteDataTagged",
description: "Introduce SQLiteData conformances to the swift-tagged package."
),
)
],
dependencies: [
.package(url: "https://github.com/apple/swift-collections", from: "1.0.0"),
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SQLiteData

A [fast](#Performance), lightweight replacement for SwiftData, powered by SQL and supporting
A [fast](#Performance), lightweight replacement for SwiftData, powered by SQL and supporting
CloudKit synchronization.

[![CI](https://github.com/pointfreeco/sqlite-data/actions/workflows/ci.yml/badge.svg)](https://github.com/pointfreeco/sqlite-data/actions/workflows/ci.yml)
Expand Down Expand Up @@ -353,8 +353,8 @@ SQLiteData. Check out [this](./Examples) directory to see them all, including:
* [**CloudKitDemo**](./Examples/CloudKitDemo)
<br> A simplified demo that shows how to synchronize a SQLite database to CloudKit and how to
share records with other iCloud users. See our dedicated articles on [CloudKit Synchronization]
and [CloudKit Sharing] for more information.
and [CloudKit Sharing] for more information.

[CloudKit Synchronization]: https://swiftpackageindex.com/pointfreeco/sqlite-data/main/documentation/sqlitedata/cloudkit
[CloudKit Sharing]: https://swiftpackageindex.com/pointfreeco/sqlite-data/main/documentation/sqlitedata/cloudkitsharing

Expand Down
4 changes: 2 additions & 2 deletions Sources/SQLiteData/CloudKit/CloudKitSharing.swift
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
}

let rootRecord =
lastKnownServerRecord
lastKnownServerRecord
?? CKRecord(
recordType: recordType,
recordID: CKRecord.ID(recordName: recordName, zoneID: defaultZone.zoneID)
Expand Down Expand Up @@ -292,7 +292,7 @@
public func cloudSharingControllerDidStopSharing(_ csc: UICloudSharingController) {
Task {
await withErrorReporting(.sqliteDataCloudKitFailure) {
try await syncEngine.deleteShare(recordID: share.recordID)
try await syncEngine.deleteShare(shareRecordID: share.recordID)
}
}
didStopSharing()
Expand Down
2 changes: 1 addition & 1 deletion Sources/SQLiteData/CloudKit/Internal/Metadatabase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
assert(
!hasSchemaChanges,
"""
A previously run migration has been removed or edited.
A previously run migration has been removed or edited. \
Metadatabase migrations must not be modified after release.
"""
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ package final class MockCloudContainer: CloudContainer, CustomDumpReflectable {
}

package var customDumpMirror: Mirror {
Mirror.init(
Mirror(
self,
children: [
("privateCloudDatabase", privateCloudDatabase),
Expand Down
3 changes: 2 additions & 1 deletion Sources/SQLiteData/CloudKit/Internal/MockSyncEngine.swift
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ package final class MockSyncEngine: SyncEngineProtocol {

package func sendChanges(_ options: CKSyncEngine.SendChangesOptions) async throws {
guard
!parentSyncEngine.syncEngine(for: database.databaseScope).state.pendingRecordZoneChanges.isEmpty
!parentSyncEngine.syncEngine(for: database.databaseScope).state.pendingRecordZoneChanges
.isEmpty
else { return }
try await parentSyncEngine.processPendingRecordZoneChanges(scope: database.databaseScope)
}
Expand Down
Loading
Loading