Skip to content

games-neox/GNLazy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GNLazy

CI Status Version License Platform

Simple lazy loader for Objective-C/Swift. Basis usage:

#import <GNLazy/GNLazy.h>

GNLazy<NSString*>* lazyString = [GNLazy createFromLoader:^{
    return @"lazy string";
}];

NSString* stringLoadedSafely = [lazy safeGet];
NSString* stringLoadedFast = [lazy fastGet];

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Minimum supported iOS version: 8.x
Dependencies: GNExceptions, GNLog & GNPreconditions

Installation

GNLazy is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "GNLazy"

Author

Games Neox, games.neox@gmail.com

License

GNLazy is available under the MIT license. See the LICENSE file for more info.

About

Simple lazy loader for Objective-C/Swift

Resources

License

Stars

Watchers

Forks

Packages

No packages published