CocoaPods trunk is moving to be read-only. Read more on the blog, there are 14 months to go.
| 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.gitCopy GSSynthesizeSingleton.h into your project.
MyManager.h
@import Foundation;
@interface MyManager : NSObject
+ (instancetype)sharedManager;
@endMyManager.m
#import "GSManager.h"
#import "GSSynthesizeSingleton.h"
@implementation MyManager
GSSynthesizeSingleton(My, Manager);
@endGSSynthesizeSingleton is licensed under the MIT License.
See the LICENSE file for more info.