Support for injecting Swift classes