maxkonovalov / MKDropdownMenu

🔻 Dropdown Menu for iOS with many customizable parameters to suit any needs
MIT License
524 stars 83 forks source link

DropdownMenu show selections on top of control #21

Closed EddieLukeAtmey closed 7 years ago

EddieLukeAtmey commented 7 years ago

Hi Max, the dropdown with your support has been a great help! Thanks for your work. Now I've got a request: I'd like to achieve something like the ss below:

screen shot 2017-03-10 at 11 52 20

So, instead of showing selections down as it does now, how can I make it shows up? Please suggest me a way to achieve this.

maxkonovalov commented 7 years ago

Hi @EddieLukeAtmey!

This shouldn't be too hard to implement, you can take a look at MKDropdownMenuTransition class – it handles all the presentation and layout logic for the menu. You simply need to assign the self.controller.view.frame a different value and also tweak the CGAffineTransform for the animation a little.

If you implement this feature, feel free to add a pull request, it's a really welcome addition! I'm very pressed on time right now, so won't be able to make a lot of things here, but I'll be happy to help if you got questions ;)

Cheers)

maxkonovalov commented 7 years ago

The feature is now available in 1.4 Thanks again @EddieLukeAtmey for the addition 👏