Skip to content
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

The use of selected segment is wrong #4

Closed
ninjandroid opened this issue Nov 29, 2018 · 3 comments
Closed

The use of selected segment is wrong #4

ninjandroid opened this issue Nov 29, 2018 · 3 comments

Comments

@ninjandroid
Copy link

in User events, there are 2 segments received and performed. when you tap on received it shows the performed ones instead.and vice versa.

I debugged this line https://github.com/khoren93/SwiftHub/blob/master/SwiftHub/Modules/Events/EventsViewModel.swift#L138 the segment returns received when you tap on Performed segment.

I added another segment, so we have now 3 segments, it returns wrong segment index each time.

Same for Issues.

@khoren93
Copy link
Owner

Hi @ninjandroid
I fixed this issue, please check out again. Thank you!

@ninjandroid
Copy link
Author

Nice !
Btw I played with the code to use Collectionview instead of tableview. All seems good but one thing is that when data is empty I can't seem to refresh, altough it is wokring well with tableview. do you know the reason?

@khoren93
Copy link
Owner

khoren93 commented Dec 2, 2018

Try to set alwaysBounceVertical = true in your collection view.

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

No branches or pull requests

2 participants