SLReader Class Reference

Inherits from NSObject
Declared in SLReader.h
SLReader.mm

Overview

SLReader is used so parse .sqa files. It creates an instance of SLAnimationInformation which can then be used to create a Squall or Core Animation.

– parseFileFromBundle:error:

Convenience method to read a .sqa file from the main bundle.

- (SLAnimationInformation *_Nullable)parseFileFromBundle:(NSString *_Nonnull)fileName error:(NSError *_Nullable *_Nullable)error

Parameters

fileName

Name of .sqa file contained in the main app bundle

error

Optional pointer to an error

Return Value

SLAnimationInformation instance which can then be used to create an animation.

Declared In

SLReader.h

– parseFileAtPath:error:

Reads a .sqa file from the passed-in path.

- (SLAnimationInformation *_Nullable)parseFileAtPath:(NSString *_Nonnull)path error:(NSError *_Nullable *_Nullable)error

Parameters

path

path to .sqa file

error

Optional pointer to an error

Return Value

SLAnimationInformation instance which can then be used to create an animation.

Declared In

SLReader.h

– parseData:error:

Reads the passed-in data and outputs an SLAnimationInformation object.

- (SLAnimationInformation *_Nullable)parseData:(NSData *_Nonnull)data error:(NSError *_Nullable *_Nullable)error

Parameters

data

NSData containing the Squall JSON data

error

Optional pointer to an error

Return Value

SLAnimationInformation instance which can then be used to create an animation.

Declared In

SLReader.h