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

Use UIPageViewController to allow swiping between Top/Recent Stories #99

Merged
merged 10 commits into from Mar 19, 2015

Conversation

jamztang
Copy link
Collaborator

Closing #92. This requirement introduced a situation that more than one StoryTableViewController will be on screen at the same time. Using delegate pattern in LoginViewControllerDelegate is not able to tell every VC instance to do proper operation when user login/logouts.

Therefore this has to include a refactor on how to deal with Login status changes, which will encapsulate in three classes, all inside LoginService.swift.

LoginStateHandler is an observer and automatically fires when user login or logout.
LoginAction is a reusable class that automatically configures and presents our LoginViewController so we can remove all the duplicated segues which was everywhere in Storyboard
LogoutAction is also a reusable class to perform correct clean up operation.

@MengTo
Copy link
Owner

MengTo commented Mar 19, 2015

Wow, this is great. Solid job @jamztang

@jamztang
Copy link
Collaborator Author

Thanks!

@jamztang
Copy link
Collaborator Author

I will fix the merge issue :)

@jamztang jamztang merged commit 2c4eb45 into master Mar 19, 2015
@jamztang jamztang deleted the feature/swipable-vc branch March 19, 2015 17:00
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