PagingMenuController icon indicating copy to clipboard operation
PagingMenuController copied to clipboard

Images of different size and colour for selected and not selected items in the paging menu, animated.

Open IVANKRUPSKI opened this issue 9 years ago • 5 comments

Hello,

Is it possible to do something similar to what is below in gif?

So, basically, to menu items add images of

  1. different colour for a selected and non-selected state, or alternatively one image but with ability to change it's tintColor depending on whether selected or not

  2. different size (or change size) for selected and not selected selected state.

And apply animation when moving form item to item.

Many thanks for the advice. example

IVANKRUPSKI avatar Dec 16 '16 13:12 IVANKRUPSKI

Unfortunately it doesn't allow to apply the animation for now. What this library has is two images like below which are non selected one and selected one and It's simply switching depends on state.

public enum MenuItemDisplayMode {
    case text(title: MenuItemText)
    case multilineText(title: MenuItemText, description: MenuItemText)
    case image(image: UIImage, selectedImage: UIImage?)
    case custom(view: UIView)
}

kitasuke avatar Dec 17 '16 20:12 kitasuke

That's pity, would be really great to have animation.

Is there any chance you might make such an upgrade? I can create separate request for that if necessary and test it later on.

Thank you very much for your help.

IVANKRUPSKI avatar Dec 18 '16 11:12 IVANKRUPSKI

I agree with @IVANKRUPSKI , this is an interesting functionality, it would be nice to implement it in PagingMenuController.

AdAvAn avatar Dec 18 '16 11:12 AdAvAn

There used to be similar stuff, but I had some issues with AutoLayout and removed it... Maybe, I should try to implement this functionality again.

kitasuke avatar Dec 18 '16 18:12 kitasuke

That would be great!

IVANKRUPSKI avatar Dec 20 '16 22:12 IVANKRUPSKI