Skip to content
Browse files

[core] Add NIMinimumTapDimension.

  • Loading branch information...
1 parent df64cc0 commit 246a3214d19aae281af5786a2d939f2cd7644e4e @jverkoey committed
Showing with 13 additions and 0 deletions.
  1. +7 −0 src/core/src/NICommonMetrics.h
  2. +6 −0 src/core/src/NICommonMetrics.m
View
7 src/core/src/NICommonMetrics.h
@@ -87,6 +87,13 @@ extern "C" {
#endif
/**
+ * The recommended number of points for a minimum tappable area.
+ *
+ * Value: 44
+ */
+CGFloat NIMinimumTapDimension(void);
+
+/**
* Fetch the height of a toolbar in a given orientation.
*
* On the iPhone:
View
6 src/core/src/NICommonMetrics.m
@@ -23,6 +23,12 @@
#endif
///////////////////////////////////////////////////////////////////////////////////////////////////
+CGFloat NIMinimumTapDimension(void) {
+ return 44;
+}
+
+
+///////////////////////////////////////////////////////////////////////////////////////////////////
CGFloat NIToolbarHeightForOrientation(UIInterfaceOrientation orientation) {
return (NIIsPad()
? 44

0 comments on commit 246a321

Please sign in to comment.
Something went wrong with that request. Please try again.