You can reach from the links below:
https://github.com/atilsamancioglu/MS4-DetectJail
https://github.com/atilsamancioglu/MS5-DetectJailSwift