intuit/CardParts

Custom margins per CardController

jmjordan opened this issue ยท 9 comments

Is your feature request related to a problem? Please describe.
Yes, cards within a CardsViewController must all have the same margin.

Describe the solution you'd like
I'd like a way to specify a custom margin for an individual card with a CardsViewController. The main reason is to specify 0 margin for things like transparent cards that need to be the full width of the view.

Describe alternatives you've considered
Instead of allowing for any margin, the solution could just be for cards that need to be the full width of the screen.

Additional context
I have completed the feature on my fork and am ready to submit a PR if this idea is approved.

This is awesome, @jmjordan. Please open a PR so that we can take a look. Looking forward to reviewing it!

This is awesome, @jmjordan. Please open a PR so that we can take a look. Looking forward to reviewing it!

@croossin Will do!

Sent with GitHawk

@jmjordan this feature is already present make use of below parameter to ...

@badrinathvm I believe that feature only allows having a custom margin for all cards in a CardsViewController. My proposed feature would allow for custom margins on individual cards.

Sent with GitHawk

@badrinathvm As Jordan mentioned, we only have the ability to set for all cards, not individual cards. @jmjordan Please open a PR ๐Ÿ˜„ thanks.

Completed in PR #208 and Version 2.22.0