mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-05-16 16:48:21 +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
20 lines
420 B
Objective-C
20 lines
420 B
Objective-C
#import <Foundation/Foundation.h>
|
|
|
|
#ifndef FontStyle_h
|
|
#define FontStyle_h
|
|
|
|
typedef NS_ENUM(NSInteger, FontStyle) {
|
|
FontStyleNormal,
|
|
FontStyleItalic,
|
|
FontStyleOblique,
|
|
FontStyleDEFAULT = FontStyleNormal,
|
|
};
|
|
|
|
static NSString* const FontStyleStrings[] = {@"normal", @"italic", @"oblique", nil};
|
|
|
|
NSString* FontStyleToString( enum FontStyle fw );
|
|
|
|
enum FontStyle FontStyleFromString( NSString* s );
|
|
|
|
#endif
|