You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As part of our app, we have UI elements similar to this. They are added as subviews of the navigation bar, but they display outside its bounds. These views must be tappable.
My solution was to subclass NavigationBar and override hitTest(:with). However, in order to use my subclass of NavigationBar, I had to fork Material and add a new designated initializer to NavigationController that accepts a navigationBarClass parameter, which it then passes to super:
This was necessary because the existing initializers on Material's NavigationController hide the initializer on UINavigationController that accepts a navigationBarClass parameter.
This is fine for us, for now, but we would prefer to point to this repo, and not our fork. Would you be interested in merging a PR that extends NavigationController with the ability to specify a navigationBarClass? Or is there perhaps another suggested way to achieve what I need?
The text was updated successfully, but these errors were encountered:
Hi!
As part of our app, we have UI elements similar to this. They are added as subviews of the navigation bar, but they display outside its bounds. These views must be tappable.
My solution was to subclass NavigationBar and override
hitTest(:with)
. However, in order to use my subclass of NavigationBar, I had to fork Material and add a new designated initializer to NavigationController that accepts anavigationBarClass
parameter, which it then passes to super:This was necessary because the existing initializers on Material's NavigationController hide the initializer on UINavigationController that accepts a navigationBarClass parameter.
This is fine for us, for now, but we would prefer to point to this repo, and not our fork. Would you be interested in merging a PR that extends NavigationController with the ability to specify a navigationBarClass? Or is there perhaps another suggested way to achieve what I need?
The text was updated successfully, but these errors were encountered: