mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-12 02:19:45 +00:00
Add "typedef" to NS_ENUM declarations, fix duplicate symbol error
NS_ENUM is designed to go with typedef c.f. Apple docs: https://developer.apple.com/library/content/releasenotes/ObjectiveC/ModernizationObjC/AdoptingModernObjective-C/AdoptingModernObjective-C.html#//apple_ref/doc/uid/TP40014150-CH1-SW6 Fixes #579
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
NS_ENUM(NSInteger, AlignmentBaseline) {
|
||||
typedef NS_ENUM(NSInteger, AlignmentBaseline) {
|
||||
AlignmentBaselineBaseline,
|
||||
AlignmentBaselineTextBottom,
|
||||
AlignmentBaselineAlphabetic,
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#ifndef FontStyle_h
|
||||
#define FontStyle_h
|
||||
|
||||
NS_ENUM(NSInteger, FontStyle) {
|
||||
typedef NS_ENUM(NSInteger, FontStyle) {
|
||||
FontStyleNormal,
|
||||
FontStyleItalic,
|
||||
FontStyleOblique,
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#ifndef FontVariantLigatures_h
|
||||
#define FontVariantLigatures_h
|
||||
|
||||
NS_ENUM(NSInteger, FontVariantLigatures) {
|
||||
typedef NS_ENUM(NSInteger, FontVariantLigatures) {
|
||||
FontVariantLigaturesNormal,
|
||||
FontVariantLigaturesNone,
|
||||
FontVariantLigaturesDEFAULT = FontVariantLigaturesNormal,
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#ifndef FontWeight_h
|
||||
#define FontWeight_h
|
||||
|
||||
NS_ENUM(NSInteger, FontWeight) {
|
||||
typedef NS_ENUM(NSInteger, FontWeight) {
|
||||
FontWeightNormal,
|
||||
FontWeightBold,
|
||||
FontWeightBolder,
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#ifndef TextAnchor_h
|
||||
#define TextAnchor_h
|
||||
|
||||
NS_ENUM(NSInteger, TextAnchor) {
|
||||
typedef NS_ENUM(NSInteger, TextAnchor) {
|
||||
TextAnchorStart,
|
||||
TextAnchorMiddle,
|
||||
TextAnchorEnd,
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#ifndef TextDecoration_h
|
||||
#define TextDecoration_h
|
||||
|
||||
NS_ENUM(NSInteger, TextDecoration) {
|
||||
typedef NS_ENUM(NSInteger, TextDecoration) {
|
||||
TextDecorationNone,
|
||||
TextDecorationUnderline,
|
||||
TextDecorationOverline,
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#ifndef TextLengthAdjust_h
|
||||
#define TextLengthAdjust_h
|
||||
|
||||
NS_ENUM(NSInteger, TextLengthAdjust) {
|
||||
typedef NS_ENUM(NSInteger, TextLengthAdjust) {
|
||||
TextLengthAdjustSpacing,
|
||||
TextLengthAdjustSpacingAndGlyphs,
|
||||
TextLengthAdjustDEFAULT = TextLengthAdjustSpacing,
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#ifndef TextPathMethod_h
|
||||
#define TextPathMethod_h
|
||||
|
||||
NS_ENUM(NSInteger, TextPathMethod) {
|
||||
typedef NS_ENUM(NSInteger, TextPathMethod) {
|
||||
TextPathMethodAlign,
|
||||
TextPathMethodStretch,
|
||||
TextPathMethodDEFAULT = TextPathMethodAlign,
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#ifndef TextPathMidLine_h
|
||||
#define TextPathMidLine_h
|
||||
|
||||
NS_ENUM(NSInteger, TextPathMidLine) {
|
||||
typedef NS_ENUM(NSInteger, TextPathMidLine) {
|
||||
TextPathMidLineSharp,
|
||||
TextPathMidLineSmooth,
|
||||
TextPathMidLineDEFAULT = TextPathMidLineSharp,
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#ifndef TextPathSide_h
|
||||
#define TextPathSide_h
|
||||
|
||||
NS_ENUM(NSInteger, TextPathSide) {
|
||||
typedef NS_ENUM(NSInteger, TextPathSide) {
|
||||
TextPathSideLeft,
|
||||
TextPathSideRight,
|
||||
TextPathSideDEFAULT = TextPathSideLeft,
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#ifndef TextPathSpacing_h
|
||||
#define TextPathSpacing_h
|
||||
|
||||
NS_ENUM(NSInteger, TextPathSpacing) {
|
||||
typedef NS_ENUM(NSInteger, TextPathSpacing) {
|
||||
TextPathSpacingAutoSpacing,
|
||||
TextPathSpacingExact,
|
||||
TextPathSpacingDEFAULT = TextPathSpacingAutoSpacing,
|
||||
|
||||
Reference in New Issue
Block a user