Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

Detect if device is ipad or iphone swift

if UIDevice.current.userInterfaceIdiom == .pad {
     // iPad
 } else {
     // not iPad (iPhone, mac, tv, carPlay, unspecified)
 }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Detect #device #ipad #iphone #swift
ADD COMMENT
Topic
Name
7+7 =