private bool isCompatiblePlatform(Platform platform1, Platform platform2) { if (Platforms.IsiOSPlatform(platform1) && platform2 == Platform.iOS) { return(true); } else { return(platform1 == platform2); } }