mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-05-17 17:04:28 +00:00
10f8134dab
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
19 lines
493 B
Objective-C
19 lines
493 B
Objective-C
#import <Foundation/Foundation.h>
|
|
|
|
#ifndef TextLengthAdjust_h
|
|
#define TextLengthAdjust_h
|
|
|
|
typedef NS_ENUM(NSInteger, TextLengthAdjust) {
|
|
TextLengthAdjustSpacing,
|
|
TextLengthAdjustSpacingAndGlyphs,
|
|
TextLengthAdjustDEFAULT = TextLengthAdjustSpacing,
|
|
};
|
|
|
|
static NSString* const TextLengthAdjustStrings[] = {@"spacing", @"spacingAndGlyphs", nil};
|
|
|
|
NSString* TextLengthAdjustToString( enum TextLengthAdjust fw );
|
|
|
|
enum TextLengthAdjust TextLengthAdjustFromString( NSString* s );
|
|
|
|
#endif
|