-
-
Save VincentDondain/3d6695d502eb413e5a3a78389daec805 to your computer and use it in GitHub Desktop.
UIContentSizeCategory GetConstant
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static NSString GetConstant (this UIContentSizeCategory self) | |
{ | |
switch ((int) self) { | |
case 0: // UIContentSizeCategory.Unspecified | |
return UIContentSizeCategoryUnspecified; | |
case 1: // UIContentSizeCategory.ExtraSmall | |
return UIContentSizeCategoryExtraSmall; | |
case 2: // UIContentSizeCategory.Small | |
return UIContentSizeCategorySmall; | |
case 3: // UIContentSizeCategory.Medium | |
return UIContentSizeCategoryMedium; | |
case 4: // UIContentSizeCategory.Large | |
return UIContentSizeCategoryLarge; | |
case 5: // UIContentSizeCategory.ExtraLarge | |
return UIContentSizeCategoryExtraLarge; | |
case 6: // UIContentSizeCategory.ExtraExtraLarge | |
return UIContentSizeCategoryExtraExtraLarge; | |
case 7: // UIContentSizeCategory.ExtraExtraExtraLarge | |
return UIContentSizeCategoryExtraExtraExtraLarge; | |
case 8: // UIContentSizeCategory.AccessibilityMedium | |
return UIContentSizeCategoryAccessibilityMedium; | |
case 9: // UIContentSizeCategory.AccessibilityLarge | |
return UIContentSizeCategoryAccessibilityLarge; | |
case 10: // UIContentSizeCategory.AccessibilityExtraLarge | |
return UIContentSizeCategoryAccessibilityExtraLarge; | |
case 11: // UIContentSizeCategory.AccessibilityExtraExtraLarge | |
return UIContentSizeCategoryAccessibilityExtraExtraLarge; | |
case 12: // UIContentSizeCategory.AccessibilityExtraExtraExtraLarge | |
return UIContentSizeCategoryAccessibilityExtraExtraExtraLarge; | |
} | |
return null; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment