SRInputSourceManager re-implemented with Pure Swift Code