final class Foo: NSObject, NSFileProviderItem
{
public func hash(into hasher: inout Hasher)
{
hasher.combine(itemIdentifier)
}
}
yields swift compiler errors:
Overriding non-open instance method outside of its defining module
Overriding declarations in extensions is not supported
Is there a way to fix NSObject hashability? I get duplicates of Foo instances in Sets which is precisely what I want to avoid.