0

xcode project has image assets we can specify image for both iPhone and ipad for a single image name

Is it possible I can specify image for portrait and landscape for iPhone and iPad separately

Any help is welcome

dinesh R
  • 319
  • 1
  • 11

1 Answers1

0

You could create a separate asset for iPad and check to see if it is an iPad before selecting the asset. UIDevice.current.userInterfaceIdiom

See here for more discussion. Detect current device with UI_USER_INTERFACE_IDIOM() in Swift

abcross92
  • 23
  • 5