Swift Version of ObjectiveC macro

2 Solutions Collect From Internet About “Swift Version of ObjectiveC macro”

Alternative in Swift:

let isPad = UIDevice.currentDevice().userInterfaceIdiom == .Pad
let isPad = UI_USER_INTERFACE_IDIOM() == .Pad