motion/core/ios/device.rb in bubble-wrap-1.8.0 vs motion/core/ios/device.rb in bubble-wrap-1.9.0

- old
+ new

@@ -11,10 +11,10 @@ # Verifies that the device running the app is an iPad. # @return [TrueClass, FalseClass] true will be returned if the device is an iPad, false otherwise. def ipad?(idiom=UIDevice.currentDevice.userInterfaceIdiom) idiom == UIUserInterfaceIdiomPad end - + # Verifies that the device having a long screen (4 inch iPhone/iPod) # @return [TrueClass, FalseClass] true will be returned if the device is an iPhone/iPod with 4 inche screen, false otherwise. def long_screen?(idiom=UIDevice.currentDevice.userInterfaceIdiom, screen_height=UIScreen.mainScreen.bounds.size.height) iphone?(idiom) && screen_height == 568.0 end