Skip to content
New issue

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

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

Already on GitHub? # to your account

Singleton? #73

Open
MaxHasADHD opened this issue Oct 17, 2015 · 2 comments
Open

Singleton? #73

MaxHasADHD opened this issue Oct 17, 2015 · 2 comments

Comments

@MaxHasADHD
Copy link

Just wondering why this isn't a singleton (with Swift)? I know they are frowned upon most of the time. It just seems easier than to initiate a bunch of times

@cezarywojcik
Copy link
Owner

My goal when writing the Swift branch was not to remake and rethink the library using Swift paradigms, but rather to translate the Objective-C code to Swift.

@cwoloszynski
Copy link

Most libraries are going away from a singleton and instead support a 'defaultInstance()' approach. Best of both worlds (and makes testing easier)

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

No branches or pull requests

3 participants