I have this line in my code:
let argsort = (scores as NSDictionary?)?.keysSortedByValue(using: Selector("compare:"))
but XCode gives me a Use '#selector' instead of explicitly constructing a 'Selector'
warning. However, the proposed fix:
let argsort = (scores as NSDictionary?)?.keysSortedByValue(using: #selector(NSTextLocation.compare(_:)))
requires iOS version 15.0, and therefore does not work for me (I am targetting iOS 13.0).
How can I either silence this warning or find a way out of this? Thanks