Add option to set a custom view class.#82
Conversation
In preparation for allowing custom notification views.
Use this to tighten up the validation for the notification view class option.
|
The reason that I made the If this is too much exposure, I could make client code keep track of this stuff itself, but the defaults would have to be duplicated since they currently aren't available from the outside. |
|
Hmmm, I really wanna add this feature, but I was thinking more an opt in and bring your own view kinda thing or use the built in stuff. Kinda like |
There was a problem hiding this comment.
This has the same behavior as isKindOfClass for instances, but will also work as expected on Class objects.
|
Guys, when you plan to marge this useful stuff? |
|
Since @cruffenach has weighed in I don't want to jump the gun. It's up to him - once he has the time. 👍 from me. |
|
Any plans to merge this CR? I need exactly this in my project and may have to fork the repo if not provided. |
This changeset enables the creation of custom layouts for notifications. I had to make a few things public that weren't before, namely the option defaults system and some parts of
CRToastView, but hopefully the extra functionality is worth it.