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

Add shadows to section controller #1313

Closed
russelltwarwick opened this issue Apr 15, 2019 · 7 comments
Closed

Add shadows to section controller #1313

russelltwarwick opened this issue Apr 15, 2019 · 7 comments
Labels

Comments

@russelltwarwick
Copy link

Trying to add shadows to a section controller but having no luck finding a solution. Only way is to add shadows to the cells but this causes the shadows to overlap on to other cells. Anyone have any ideas?

@weyert
Copy link
Contributor

weyert commented Apr 20, 2019

Hmm, can't you use the decoration views for this?

@bdotdub
Copy link
Contributor

bdotdub commented Apr 29, 2019

@waruss321 did the decoration view work for you?

@abdela7ad
Copy link

Any one Figure out any solution

@Janscho
Copy link

Janscho commented Nov 6, 2019

Maybe this helps: #805
Needed the same functionality, but still haven't tried it.

@russelltwarwick
Copy link
Author

Still no solution to this.

@yusuftor
Copy link

Has anyone got a working solution for this?

@lorixx
Copy link
Contributor

lorixx commented Aug 20, 2021

I think the best approach is to model this into the view model, to have the cell respect the value for the rounder corner for that particular index path. For example, if you have 5 view models in this section, and you want the top and bottom corner, then you should add that information into the view model itself, something like "cornerInfo":

[ viewModel with top corner, view model[with no corner], view model[with no corner], view model[with no corner], view model with bottom corner ]

@lorixx lorixx closed this as completed Aug 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants