demo/load-event/js/libs/jquery.isinview/jquery.isinview-1.0.3.js
function isIOS () {
        if ( _isIOS === undefined ) _isIOS = (/iPad|iPhone|iPod/g).test( navigator.userAgent );
        return _isIOS;
    }
function isIOS () {
        if ( _isIOS === undefined ) _isIOS = (/iPad|iPhone|iPod/g).test( navigator.userAgent );
        return _isIOS;
    }
function isIOS ( ) { if ( _isIOS === undefined ) _isIOS = ( / iPad|iPhone|iPod / g ) . test ( navigator . userAgent ) ; return _isIOS ; }
Detects if the browser is on iOS. Works for Safari as well as other browsers, say, Chrome on iOS.

Required for some iOS behaviour which can't be feature-detected in any way.

@returns {boolean}
Detects if the browser is on iOS . Works for Safari as well as other browsers say Chrome on iOS .