packages/uswds-core/src/js/utils/is-ios-device.js
// iOS detection from: http://stackoverflow.com/a/9039885/177710
function isIosDevice() {
return (
typeof navigator !== "undefined" &&
(navigator.userAgent.match(/(iPod|iPhone|iPad)/g) ||
(navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1)) &&
!window.MSStream
);
}
module.exports = isIosDevice;