Skip to content

Instantly share code, notes, and snippets.

typedef NS_OPTIONS(NSUInteger, ASDisplayNodeMethodOverrides)
{
ASDNFlagSynchronous = 0,
ASDNFlagLayerBacked = 1 << 0,
};
#define isSynchronous _atomicFlags.fetch_or(ASDNFlagSynchronous)
#define isLayerBacked _atomicFlags.fetch_or(ASDNFlagLayerBacked)
@interface ASDisplayNode ()