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

collectionview in header view not getting scrolled #88

Open
jainamOx opened this issue Jun 1, 2021 · 3 comments
Open

collectionview in header view not getting scrolled #88

jainamOx opened this issue Jun 1, 2021 · 3 comments

Comments

@jainamOx
Copy link

jainamOx commented Jun 1, 2021

Hi
I have implemented SegementSlideViewController in my app and want to assign one header view which contains a collection view inside
my problem is a collection not getting scrolled.

I have design header view in the storyboard and assign uiviewcontroller to segment slide view controller class

does anyone have any idea?

Thanks

@gatihalodoc
Copy link

I am also facing the same issue.

I have added scrollview in the headerview to display multiple images in horizontal scroll.

But, when I am trying to scroll the header view. It is basically changing the segment tab.

Does anyone have any solution?

Thanks in advance!

@kalpeshjethva18
Copy link

Same problem here. does any get a solution @gatihalodoc @jainamOx?

@kalpeshjethva18
Copy link

I got a solution just extended the hitTest method to the current default header

extension SegementSlideHeaderView {
public override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? {
let view = super.hitTest(point, with: event)
return 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

3 participants