Detect if device is iOS

Detecting iOS With iOS 13 iPad both User agent and platform strings are changed and differentiating between iPad and MacOS seems possible, so all answers below needs to take that into account now. This might be the shortest alternative that also covers iOS 13: function iOS() { return [ ‘iPad Simulator’, ‘iPhone Simulator’, ‘iPod Simulator’, … Read more