Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Private init #13

Closed
angeldev opened this issue Nov 16, 2015 · 1 comment
Closed

Private init #13

angeldev opened this issue Nov 16, 2015 · 1 comment

Comments

@angeldev
Copy link

Hi, first of all thanks you very much for this repo, I found it very useful. Just, I wonder if class constant approach could be incomplete. Isn't necessary a private init? with this current implementation you could create several references of the same class, with a private init you only could create one instance (the static property).

Thanks.

@gabrielmadruga
Copy link

You are correct, in fact the .swift example is already updated. I made a pull request for this: #14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants