Testing type for class conformance in Swift – Ios swift
EDIT: The previous answers alluded to in the comments don't answer the question, which was how to determine if any given Type was a reference type and how to safely conform said type to AnyObject. Testing against the passed type…