Skip to content

Instantly share code, notes, and snippets.

@yyjim
Created February 5, 2018 16:25
Show Gist options
  • Save yyjim/963333e69cf985366a2dc4caf54fef6f to your computer and use it in GitHub Desktop.
Save yyjim/963333e69cf985366a2dc4caf54fef6f to your computer and use it in GitHub Desktop.
NS_STRING_ENUM example
// Media types
// Reference: AVMediaType
typedef NSString * CBMediaType NS_STRING_ENUM;
FOUNDATION_EXPORT CBMediaType const CBMediaTypeImage;
FOUNDATION_EXPORT CBMediaType const CBMediaTypeVideo;
FOUNDATION_EXPORT CBMediaType const CBMediaTypeGif;
FOUNDATION_EXPORT CBMediaType const CBMediaTypeAnimatedOutput;
CBMediaType const CBMediaTypeImage = @"image";
CBMediaType const CBMediaTypeVideo = @"video";
CBMediaType const CBMediaTypeGif = @"gif";
CBMediaType const CBMediaTypeAnimatedOutput = @"animated_output";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment