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

PGIOS51 Add Onboarding Screens #81

Merged
merged 32 commits into from
Nov 25, 2019

Conversation

connected-rkingsmill
Copy link
Contributor

@connected-rkingsmill connected-rkingsmill commented Nov 24, 2019

  1. Refactor LandingViewController to OnboardingViewController to be reused for all onboarding views
  2. Add assets for the rest of the onboarding screens
  3. Create CarouselPageViewController and CarouselDataSource to conform to UIPageViewControllerDelegate and UIPageViewControllerDataSource respectively

The formatting of the close button and skip button on CarouselPageViewController will be done in bugfix/PGIO-63

2019-11-24 11 51 55

…ler using a Page struct and a helper setupPages function to set the before and after on the list

Move the UIPageViewControllerDataSource and UIPageViewControllerDelegate protocols into extensions on CarouselPageViewDataSource
…ntroller for now

May change it back to NavgationCoordinaror later
… CarouselPageViewDataSource to self

Add currentIndex to keep track of the index for the datasource function `presentationIndex(for pageViewController: UIPageViewController)`
…rivate lazy vars so they are only created once
Refactor using the UI components that are instantiates as lazy vars
Add isLastPage isLastPageNext and shouldHideControls booleans to help determine when to show and hide the skip button and page indicator
Refactor the skipButton(isHidden: Bool) function to reformatPage() that uses the computed booleans to determines how to reformat the view
When skipping to the last page, update the currentIndex to the last page
…es, it updates the currentIndex and pageControl index and then sets the pendingIndex to nil and calls reformatPage()
…e get started button is selected it will navigate to the login screen

Set the button title for the last onboarding screen
When don't want to show the buttons, hide the stackView
When want only the getStarted button to show on the last onboarding screen, remove the other button from the stackView and increase the distance of the stack view bottom to the safe area bottom
Copy link
Contributor

@Paul-Huang-Connected Paul-Huang-Connected left a comment

Choose a reason for hiding this comment

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

Thank you for attaching the GIF to the PR - looking good 👍

Copy link
Contributor

@Paul-Huang-Connected Paul-Huang-Connected left a comment

Choose a reason for hiding this comment

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

LGTM! Just a few nit-picks

Thank you for the refactoring effort :)

@connected-rkingsmill connected-rkingsmill merged commit 49e0503 into develop Nov 25, 2019
@connected-rkingsmill connected-rkingsmill deleted the feature/PGIOS51-onboarding-screens branch November 25, 2019 15:07
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.

None yet

2 participants