TestsTested | ✓ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Jan 2017 |
Maintained by GyazSquare, Goichi Hirakawa.
GSSynthesizeSingleton is a simple macro to synthesize the methods for an Objective-C singleton class.
Check out the source:
$ git clone https://github.com/GyazSquare/GSSynthesizeSingleton.git
Copy GSSynthesizeSingleton.h into your project.
MyManager.h
@import Foundation;
@interface MyManager : NSObject
+ (instancetype)sharedManager;
@end
MyManager.m
#import "GSManager.h"
#import "GSSynthesizeSingleton.h"
@implementation MyManager
GSSynthesizeSingleton(My, Manager);
@end
GSSynthesizeSingleton is licensed under the MIT License.
See the LICENSE file for more info.