File size: 275 Bytes
ec50620
 
 
 
 
 
1
2
3
4
5
6
export const isIOS = (): boolean => {
  const userAgent = window.navigator.userAgent.toLowerCase();
  return /iphone|ipad|ipod/.test(userAgent) || 
         // Detect iPad on iOS 13+ (which reports as Mac)
         (userAgent.includes('mac') && 'ontouchend' in document);
};