jonasman / MulticastDelegate

An elegant multicast delegate written in swift
MIT License
148 stars 28 forks source link

Add Initializers for strong references and custom options #4

Closed JRG-Developer closed 8 years ago

JRG-Developer commented 8 years ago

In our project, we've run into a case where we need to have strongly referenced delegate objects.

I believe this is a fairly common case, so I've added an initializer to support it.

In the process, I also thought it would be nice to have a flexible initializer where end user could specify whatever options he wanted. So, I added this as well.

I've added unit tests and documentation to cover these too.

JRG-Developer commented 8 years ago

This PR should be fully backwards compatible.

If accepted, can you please also bump the minor version and push to CocoaPods trunk?

Thanks!

jonasman commented 8 years ago

Done :) thanks for the new inits.

JRG-Developer commented 8 years ago

👍