❯ ~/robonen/tools
core
  • stdlibapi
  • platformapi
    ❯
    guide
    • Introduction
    • ❯assignStyle
    • ❯createGuardAttrs
    • ❯decodeCookieValue
    • ❯dispatchAnimationEvent
    • ❯encodeCookieName
    • ❯encodeCookieValue
    • ❯findFirstVisible
    • ❯findLastVisible
    • ❯focus
    • ❯focusFirst
    • ❯focusGuard
    • ❯getActiveElement
    • ❯getAnimationName
    • ❯getCookieValue
    • ❯getTabbableCandidates
    • ❯getTabbableEdges
    • ❯getTranslate
    • ❯hideOthers
    • ❯isAnimatable
    • ❯isEventTarget
    • ❯isHidden
    • ❯isInView
    • ❯isIOS
    • ❯isIPad
    • ❯isIPhone
    • ❯isMac
    • ❯isMobileFirefox
    • ❯isSafari
    • ❯isSelectableInput
    • ❯onAnimationSettle
    • ❯parseCookieString
    • ❯pxValue
    • ❯readInputState
    • ❯resetStyle
    • ❯serializeCookie
    • ❯setStyle
    • ❯shouldSuspendUnmount
    • ❯testUserAgentPlatform
    • ❯writeInputState
  • fetchapi
  • encodingapi
  • crdtapi
vue
  • vueapi
  • writekitapi
  • primitivesui
configs
  • eslintguide
  • tsconfigguide
  • tsdownguide
infra
  • renovateguide
@robonen/platform/isIOS
fn

isIOS

v0.0.5tested

Whether the current device runs iOS/iPadOS (iPhone or iPad).

Source Tests

Signature

ts
export function isIOS(): boolean | undefined{ ... }

Returns

boolean | undefinedtrue on iOS, undefined outside a browser
on this page
  • Signature
  • Returns