// functions/isIos.js
export default function isiOS() {
return ['iPad Simulator', 'iPhone Simulator', 'iPod Simulator', 'iPad', 'iPhone', 'iPod'
].includes(navigator.platform) ||
(navigator.userAgent.includes('Mac') && 'ontouchend' in document) ||
/^((?!chrome|android).)*safari/i.test(navigator.userAgent)
}