Port of LightDI to Objective C.