Skip to content

Lazy loading hooks

Choose a tag to compare

@AlexDenisov AlexDenisov released this 22 Mar 09:48
· 62 commits to master since this release

BMLazy module provides a hook system to catch the object creation.
To enable these hooks just create instance method named propertyNameInjected:

For example:

@implementation ViewController

@lazy(progressViewService)

- (void)progressViewServiceInjected:(ProgressViewService *service)
{
    service.title = self.title;
}

@end