When trying to conform to NSItemProviderReading, I get the following error:
The protocol definition for this method is as follows:
public static func object(withItemProviderData data: Data, typeIdentifier: String) throws -> Self
The protocol static function returns type "Self", I've tried to change it to the name of the actual class, but then it won't conform to NSItemProviderReading anymore.
How does one return "Self" ?
Update: This is what happens when I ask Xcode to fix it:
It appends as! Self, but then shows 2 errors and this warning, it looks confusing cause it seems that it wants to revert back to how it was before, returning the instance of the class in this case NameData
NameData
a final class – user3581248