-
Notifications
You must be signed in to change notification settings - Fork 61
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
Slight lag after tapping segment? #22
Comments
I've never seen such a thing. Although I've noticed that you have changed the highlight bar's dimensions. (Or is the frame that is not as wide as the parent controller?) Could you send me a code example where you isolate the issue? I'm really intrigued. |
Not quite, its actually a bit weird because I wanted it in my navigation bar so i literally set the titleView to it. I don't mess with the titleView anywhere else but it automatically reduces the size of it slightly because as you can see, the controllers view doesn't go all the way to the end of the screen.
|
I've used it in the navigation bar before without any issues. You can see from the picture I'm attaching. If you let me see a portion of the code in which you are embedding it into the navigation bar I could help you figure it out. Sent from my iPhone
|
I think I included that code in the last comment. Its just one line of code to embed it
Is there something else that would be helpful? I am happy to provide it, I super appreciate your willingness to help! |
I used something like self.navigationController?.navigationBar.addSubview(segmentedControl) I apologize for the crappy image. Hopefully this will help. Sent from my iPhone
|
Interesting, I added it the way you just said and now it spans the entire width of the navigationbar but the lag still exists. So strange, i have NO idea what could be causing this :/. |
Hmm I'll give it a try again and see if I get a lag. Because I can't get to replicate your issues. Sent from my iPhone
|
@xaviermerino It seems that the segmentedControl might be receiving the touch event slowly. Is it possible that in the navbar, the touch event is taking a while to be passed to the control? I figured this out by putting a breakpoint at the top of |
I have never heard of such a thing. and I'm guessing you haven't played with the user interaction properties and stuff like that in this project, so this shouldn't be an issue. I have my segmented control embedded there just fine. Is there a way for you to send me a small demo of the problem. Like a small project that has that problem. So I can try and figure it out Sent from my iPhone
|
@xaviermerino , it seems for some reason that I have a bit of a lag after tapping a segment. Do you have any idea what could be causing this? No heavy lifting is being done through this transition on the app's end so it shouldn't be slow. I used to have a tab bar controller in its place and it was instantaneous. I LOVE your controller so I want to make it work :). I have included a video below.
The text was updated successfully, but these errors were encountered: