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

Adding dynamic support of height in CardPartPagedView #244

Merged
merged 1 commit into from
Jun 17, 2020

Conversation

rattandeep1998
Copy link
Contributor

Before you make a Pull Request, read the important guidelines:

Issue Link 🔗

This is an additional capability in CardPartPagedView to dynamically update the height of the view after it has already been instantiated. And it will not break any existing capability.

Goals of this PR 🎉

We are using CardParts in Mint and specifically for bills overview card we are using CardPartPagedView component [which is similar to pageViewController functionality i.e. provides the ability to have multiple scrollable views in our case horizontal].
We have a requirement of dynamically changing the height of this view when state of this card changes from empty state to data state. [ An empty state is when a user does not have any bills attached or the bills are currently been fetched. Data state is when user’s bills have been fetched and ready for display ]. When the bills are in empty state lets say the height of the bills overview should be 400 and when the bills have been fetched we have to resize the bills overview card to 350.

How Has This Been Tested 🔍

We have tested this PR with Mint app and the changes works fine everywhere.

Things to check on 🎯

  • My Pull Request code follows the coding standards and styles of the project
  • I have worked on unit tests and reviewed my code to the best of my ability
  • I have used comments to make other coders understand my code better (NA)
  • My changes are good to go without any warnings
  • I have added unit tests both for the happy and sad path (NA)
  • All of my unit tests pass successfully before pushing the PR (NA)
  • I have made sure all dependent downstream changes impacted by my PR are working

Copy link
Contributor

@badrinathvm badrinathvm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@croossin croossin merged commit 08b3c40 into intuit:master Jun 17, 2020
bevbomb added a commit to FireHawkDigital/CardParts that referenced this pull request Sep 2, 2020
…rkmode

* 'master' of github.com:FireHawkDigital/CardParts: (23 commits)
  spacing formatting in podspec
  Bumping version to 3.1.3
  Update CardPartHistogramView.swift
  Bmping version to 3.1.2
  Fix wrong layout on iPad modal presentation
  Update CardParts.podspec
  Update CardPartHistogramView.swift (intuit#253)
  Bump podspec (intuit#251)
  Adding dynamic support of height in CardPartPagedView (intuit#244)
  Bump podspec (intuit#250)
  Update RxCocoa/Swift/DataSource/Gesture (intuit#243)
  Update CardParts.podspec (intuit#241)
  Card Parts Bottom Sheet View Controller (intuit#240)
  Update CardParts.podspec (intuit#238)
  Card part attributed text patch (intuit#237)
  Create card part switch component (intuit#236)
  Add loadspecificcards to README
  Update CardParts.podspec (intuit#233)
  Adding a capability to load specific cards added to collection view (intuit#232)
  Update CardParts.podspec (intuit#231)
  ...
@rattandeep1998 rattandeep1998 deleted the rds/cardpartpagedview branch October 30, 2020 16:05
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

Successfully merging this pull request may close these issues.

3 participants