jessesquires/PresenterKit

UIImage support for UIBarButtonItem for DismissButtonConfig

psartzetakis opened this issue ยท 6 comments

Hi, ๐Ÿ˜€
I was thinking that it might be a good feature if there was a way to set an image for the UIBarButtonItem through the DismissButtonConfig.
What do you think ? ๐Ÿค”

Seems reasonable ๐Ÿ‘

We could add a .image(UIImage) case to the Text enum:
https://github.com/jessesquires/PresenterKit/blob/develop/Source/DismissButtonConfig.swift#L70-L77

We should probably rename it from Text to something else... ๐Ÿค”

Renaming enum Text would be a breaking change though ๐Ÿ˜ข

Would you recommend a different approach in order to avoid renaming enum Text ?

@psartzetakis - Hm... probably not. I can't really thing of a better way to do this.

It's not a big deal. ๐Ÿ˜„

However, it would be nice include more changes for the 4.0 release.

However, it would be nice include more changes for the 4.0 release.

@jessesquires I have a couple of ideas..๐Ÿค”.
However I believe it would be better to open separate issues so we can discuss them separately.. ๐Ÿ˜€

However I believe it would be better to open separate issues so we can discuss them separately..

Definitely! ๐Ÿ’ฏ ๐Ÿ‘