CFTypeID with a value of 0 could really refer to _kCFRuntimeNotATypeID since the mask used in __CFTypeIDFromInfo seems to be the right one for 32bits. So, checking for _CFIsSwift(typeID, cf) would yield the same result.
But unless something major changed irt object lifetime I doubt this could be considered a fix for the issue above.
Sample:
On Swift 3.1.1: Similar error Temporary "Workaround":
CFTypeID
with a value of 0 could really refer to_kCFRuntimeNotATypeID
since the mask used in__CFTypeIDFromInfo
seems to be the right one for 32bits. So, checking for _CFIsSwift(typeID, cf) would yield the same result. But unless something major changed irt object lifetime I doubt this could be considered a fix for the issue above.