How can I resolve the error with PhotosPicker?
I want to use PhotosPicker
, but I’m encountering an error with the line item.loadTransferable(type: Data.self)
which says Instance method ‘loadTransferable(type:)’ requires that ‘Data’ conform to ‘Transferable’. I cannot execute the code because of this error. Why is this happening? Any information would be helpful.