-
Notifications
You must be signed in to change notification settings - Fork 279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to add custom views to IndicatorView #46
Comments
+1 for this |
@gmarm Any chance you could take a look and give us your thoughts? If you're open to the idea I'd be more than happy to submit a pull request |
Hey @amorde, apologies for my late response, had no time lately! Yes, let's discuss this. Apart from a title underline view, do you think any other customization makes sense for the indicator view? I can't think of too many things really. Making it public would be something I'd do as a last resort, but for example something like a set of properties to show and customize an underline view could be nice. |
I think it makes sense in that being able to add customization to the indicator view (which handles the "swipe" animation) is a pretty nice feature. Sure, you could add support for an underline, but it would be great if developers could extend it to provide any type of view there. Some examples of customizations might include:
What do you think about the second option in my original comment? That is, adding a method like |
Yep, Feel free to submit a PR with the addition and also please include a basic test case. |
I'm not sure if this is a feature you are interested in supporting, but my team maintains an in-house fork to be able to add subviews to the
indicatorView
to support UI that isn't provided.In our case, we have a view which behaves as an "underline" for the currently selected index and moves along with the indicator view. If we decide to do something different, we can always just change our custom view to look however we want.
The change required to support this is changing the access modifier of the
indicatorView
property and theIndicatorView
class to public. Of course, you could always code in accessors likeaddSubviewToIndicator
or something similar.Let me know what you think - if this is something you are interested in supporting, I'd be happy to submit a pull request
The text was updated successfully, but these errors were encountered: