Skip to content

Commit 3b686f1

Browse files
committed
wip
1 parent 3d15e5e commit 3b686f1

1 file changed

Lines changed: 18 additions & 5 deletions

File tree

Sources/SQLiteData/CloudKit/CloudKitSharing.swift

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -288,11 +288,24 @@
288288
)
289289
} else {
290290
Form {
291-
Button("Stop sharing", role: .destructive) {
292-
Task {
293-
try await syncEngine.unshare(share: sharedRecord.share)
294-
try await syncEngine.fetchChanges()
295-
dismiss()
291+
Section {
292+
if let title = sharedRecord.share[CKShare.SystemFieldKey.title] as? String {
293+
Text(title)
294+
}
295+
if
296+
let imageData = sharedRecord.share[CKShare.SystemFieldKey.thumbnailImageData] as? Data,
297+
let image = UIImage(data: imageData)
298+
{
299+
Image(uiImage: image)
300+
}
301+
}
302+
Section {
303+
Button("Stop sharing", role: .destructive) {
304+
Task {
305+
try await syncEngine.unshare(share: sharedRecord.share)
306+
try await syncEngine.fetchChanges()
307+
dismiss()
308+
}
296309
}
297310
}
298311
}

0 commit comments

Comments
 (0)