Merge pull request #602 from expo/ns-enum

Add "typedef" to NS_ENUM declarations, fix duplicate symbol error
This commit is contained in:
Mikael Sand
2018-02-13 18:58:23 +02:00
committed by GitHub
11 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
#import <Foundation/Foundation.h>
NS_ENUM(NSInteger, AlignmentBaseline) {
typedef NS_ENUM(NSInteger, AlignmentBaseline) {
AlignmentBaselineBaseline,
AlignmentBaselineTextBottom,
AlignmentBaselineAlphabetic,
+1 -1
View File
@@ -3,7 +3,7 @@
#ifndef FontStyle_h
#define FontStyle_h
NS_ENUM(NSInteger, FontStyle) {
typedef NS_ENUM(NSInteger, FontStyle) {
FontStyleNormal,
FontStyleItalic,
FontStyleOblique,
+1 -1
View File
@@ -3,7 +3,7 @@
#ifndef FontVariantLigatures_h
#define FontVariantLigatures_h
NS_ENUM(NSInteger, FontVariantLigatures) {
typedef NS_ENUM(NSInteger, FontVariantLigatures) {
FontVariantLigaturesNormal,
FontVariantLigaturesNone,
FontVariantLigaturesDEFAULT = FontVariantLigaturesNormal,
+1 -1
View File
@@ -3,7 +3,7 @@
#ifndef FontWeight_h
#define FontWeight_h
NS_ENUM(NSInteger, FontWeight) {
typedef NS_ENUM(NSInteger, FontWeight) {
FontWeightNormal,
FontWeightBold,
FontWeightBolder,
+1 -1
View File
@@ -3,7 +3,7 @@
#ifndef TextAnchor_h
#define TextAnchor_h
NS_ENUM(NSInteger, TextAnchor) {
typedef NS_ENUM(NSInteger, TextAnchor) {
TextAnchorStart,
TextAnchorMiddle,
TextAnchorEnd,
+1 -1
View File
@@ -3,7 +3,7 @@
#ifndef TextDecoration_h
#define TextDecoration_h
NS_ENUM(NSInteger, TextDecoration) {
typedef NS_ENUM(NSInteger, TextDecoration) {
TextDecorationNone,
TextDecorationUnderline,
TextDecorationOverline,
+1 -1
View File
@@ -3,7 +3,7 @@
#ifndef TextLengthAdjust_h
#define TextLengthAdjust_h
NS_ENUM(NSInteger, TextLengthAdjust) {
typedef NS_ENUM(NSInteger, TextLengthAdjust) {
TextLengthAdjustSpacing,
TextLengthAdjustSpacingAndGlyphs,
TextLengthAdjustDEFAULT = TextLengthAdjustSpacing,
+1 -1
View File
@@ -3,7 +3,7 @@
#ifndef TextPathMethod_h
#define TextPathMethod_h
NS_ENUM(NSInteger, TextPathMethod) {
typedef NS_ENUM(NSInteger, TextPathMethod) {
TextPathMethodAlign,
TextPathMethodStretch,
TextPathMethodDEFAULT = TextPathMethodAlign,
+1 -1
View File
@@ -3,7 +3,7 @@
#ifndef TextPathMidLine_h
#define TextPathMidLine_h
NS_ENUM(NSInteger, TextPathMidLine) {
typedef NS_ENUM(NSInteger, TextPathMidLine) {
TextPathMidLineSharp,
TextPathMidLineSmooth,
TextPathMidLineDEFAULT = TextPathMidLineSharp,
+1 -1
View File
@@ -3,7 +3,7 @@
#ifndef TextPathSide_h
#define TextPathSide_h
NS_ENUM(NSInteger, TextPathSide) {
typedef NS_ENUM(NSInteger, TextPathSide) {
TextPathSideLeft,
TextPathSideRight,
TextPathSideDEFAULT = TextPathSideLeft,
+1 -1
View File
@@ -3,7 +3,7 @@
#ifndef TextPathSpacing_h
#define TextPathSpacing_h
NS_ENUM(NSInteger, TextPathSpacing) {
typedef NS_ENUM(NSInteger, TextPathSpacing) {
TextPathSpacingAutoSpacing,
TextPathSpacingExact,
TextPathSpacingDEFAULT = TextPathSpacingAutoSpacing,