Fix profile sharing broken in iOS 17.4

This commit is contained in:
世界
2024-03-19 09:49:26 +08:00
parent 7098a84187
commit db8cbfa865
3 changed files with 16 additions and 14 deletions
+1 -1
View File
@@ -89,7 +89,7 @@ public struct TypedProfile: Transferable, Codable {
public static var transferRepresentation: some TransferRepresentation {
FileRepresentation(contentType: .profile) { typed in
try SentTransferredFile(typed.content.generateShareFile())
try SentTransferredFile(typed.content.generateShareFile(), allowAccessingOriginalFile: true)
} importing: { received in
try TypedProfile(.from(Data(contentsOf: received.file)))
}