We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d15e5e commit 3b686f1Copy full SHA for 3b686f1
1 file changed
Sources/SQLiteData/CloudKit/CloudKitSharing.swift
@@ -288,11 +288,24 @@
288
)
289
} else {
290
Form {
291
- Button("Stop sharing", role: .destructive) {
292
- Task {
293
- try await syncEngine.unshare(share: sharedRecord.share)
294
- try await syncEngine.fetchChanges()
295
- dismiss()
+ Section {
+ if let title = sharedRecord.share[CKShare.SystemFieldKey.title] as? String {
+ Text(title)
+ }
+ 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
303
+ Button("Stop sharing", role: .destructive) {
304
+ Task {
305
+ try await syncEngine.unshare(share: sharedRecord.share)
306
+ try await syncEngine.fetchChanges()
307
+ dismiss()
308
309
}
310
311
0 commit comments