Skip to content
This repository has been archived by the owner on Jun 17, 2018. It is now read-only.

Adds ability to set selectedView when setting a custom view #346

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

almcintyre
Copy link

@almcintyre almcintyre commented Apr 17, 2017

Changes proposed in this pull request:

  • Adds optional selectedView when adding a custom view for a Menu Item

Fixes issue #347

Deallocates customView before updating based on selection state to avoid a memory leak
@cody1024d
Copy link

I could really use something like this as well. I think it could be implemented a bit differently, to avoid attaching multiple views, but this feature in general is really important. (I would simply create a SelectableCustomView protocol, that customView has to implement, which would expose an isSelected variable, or something, that would be used to trigger changes within the custom view itself)

@kitasuke Any chance something like this could make it into the project?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants