UTIKit
UTIKit copied to clipboard
Add `conforms(to:)` API
Two-case switch
statements aren't nice when there's no expectation of future cases. I just want do a simple conformance check which results in a Bool
, just like UTTypeConformsTo(_:_:)
, but without the CFString
boilerplate.
I could do it with
let doesConform = uti ~= candidateParentUTI
but it's quite cryptic.
let doesConform = uti.conforms(to: candidateParentUTI)
Would be better, undesputably so, IMHO.
Thoughts?