To clarify: @property(readonly) NSUInteger hash- this is an Objective-C property NSObject, this means that a getter has been created for this variable, namely hash().
Now you are trying to define a method with the same name and the same parameters (none), but with a different return type ( UIntinstead of NSUIntegerwhat will be Intin swift.). Therefore, you get this error. To solve this problem, you have two options: