cezarywojcik/CWStatusBarNotification

Singleton?

Opened this issue · 2 comments

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

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.

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