i am using this LocationPicker in my project and when i build the project the library has an error saying this: Value of type 'AnyObject' has no member 'hashValue' so i opened the code and i found the error line here the code:
open override func isEqual(_ object: Any?) -> Bool {
guard let object = object else { return false }
return (object as AnyObject).hashValue == hashValue
}
i am new to swift and i am thinking maybe theres another syntax for the above code i am using a newer version of swift 5.0 and xcode10.
i tried using the autofix feature xcode suggests but doesnt work.
AnyObject not follow Hashable protocol