예제 #1
0
        public static bool IsiPhoneX()
        {
            CGSize screen = UtilsiOS.GetNativeScreenSize();

            return(screen.Height == 2688 || screen.Height == 2436 ||
                   screen.Height == 1792);
            // XS: 2436x1125 XS max: 2688x1242 XR: 1792x828
            // 8: 1334x750, 8 Plus: 1920x1080, SE,5: 1136x640, 4s: 960x640
        }
예제 #2
0
        public static bool IsiPhoneX()
        {
            CGSize screen = UtilsiOS.GetNativeScreenSize();

            return(screen.Width == 1125);
        }
예제 #3
0
        public static bool IsiPhoneXR()
        {
            CGSize screen = UtilsiOS.GetNativeScreenSize();

            return(screen.Height == 1792);
        }