ApptimizeCodeBlock
@interface ApptimizeCodeBlock : NSObjectWraps a code block with its corresponding name.
Useful in Swift for passing closures to
 +runTest:withBaseline:apptimizeCodeBlocks:andOptions:
- 
                  
                  Name to give this code block. Should match variant name associated with this code block. DeclarationObjective-C @property (readwrite, copy, nonatomic, nonnull) NSString *name;Swift var name: String { get set }
- 
                  
                  Code block to execute when enrolled in a variant matching name.DeclarationObjective-C @property (readwrite, copy, nonatomic, nonnull) void (^)(void) block;Swift var block: () -> Void { get set }
- 
                  
                  Initialize an ApptimizeCodeBlock that contains block and corresponding name DeclarationObjective-C - (nonnull instancetype)initWithName:(nonnull NSString *)name andBlock:(nonnull void (^)(void))block;Swift init(name: String, andBlock block: @escaping () -> Void)ParametersnameThe name of the code block, should match the variant name this code block is associated with. blockThe code block to execute when enrolled in the variant matching name.Return ValueReturns a new ApptimizeCodeBlock containing a named closure. 
 
         ApptimizeCodeBlock Class Reference
        ApptimizeCodeBlock Class Reference