mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-12 10:28:03 +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
22 lines
569 B
Objective-C
22 lines
569 B
Objective-C
#import <Foundation/Foundation.h>
|
|
|
|
#ifndef TextDecoration_h
|
|
#define TextDecoration_h
|
|
|
|
typedef NS_ENUM(NSInteger, TextDecoration) {
|
|
TextDecorationNone,
|
|
TextDecorationUnderline,
|
|
TextDecorationOverline,
|
|
TextDecorationLineThrough,
|
|
TextDecorationBlink,
|
|
TextDecorationDEFAULT = TextDecorationNone,
|
|
};
|
|
|
|
static NSString* const TextDecorationStrings[] = {@"None", @"Underline", @"Overline", @"LineThrough", @"Blink", nil};
|
|
|
|
NSString* TextDecorationToString( enum TextDecoration fw );
|
|
|
|
enum TextDecoration TextDecorationFromString( NSString* s );
|
|
|
|
#endif
|