17 #import "NICommonMetrics.h"
19 #import "NISDKAvailability.h"
21 #if !defined(__has_feature) || !__has_feature(objc_arc)
22 #error "Nimbus requires ARC support."
32 : (UIInterfaceOrientationIsPortrait(orientation)
38 return UIViewAnimationCurveEaseIn;
46 return UIViewAnimationCurveEaseInOut;
54 CGRect statusBarFrame = [[UIApplication sharedApplication] statusBarFrame];
58 CGFloat statusBarHeight = MIN(statusBarFrame.size.width, statusBarFrame.size.height);
60 return statusBarHeight;
64 return isFlippingUpsideDown ? 0.8 : 0.4;
68 return UIEdgeInsetsMake(10, 10, 10, 10);
CGFloat NIMinimumTapDimension(void)
The recommended number of points for a minimum tappable area.
UIViewAnimationCurve NIStatusBarAnimationCurve(void)
The animation curve used when changing the status bar's visibility.
NSTimeInterval NIDeviceRotationDuration(BOOL isFlippingUpsideDown)
The animation duration when the device is rotating to a new orientation.
CGFloat NIStatusBarHeight(void)
Get the status bar's current height.
NSTimeInterval NIStatusBarAnimationDuration(void)
The animation duration used when changing the status bar's visibility.
NSTimeInterval NIStatusBarBoundsChangeAnimationDuration(void)
The animation duration used when the status bar's bounds change (when a call is received, for example).
UIViewAnimationCurve NIStatusBarBoundsChangeAnimationCurve(void)
The animation curve used when the status bar's bounds change (when a call is received, for example).
BOOL NIIsPad(void)
Checks whether the device the app is currently running on is an iPad or not.
UIEdgeInsets NICellContentPadding(void)
The padding around a standard cell in a table view.