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 content title and button to Details view #60

Merged
merged 6 commits into from
Jan 16, 2019

Conversation

lokae0
Copy link
Collaborator

@lokae0 lokae0 commented Jan 16, 2019

screen shot 2019-01-16 at 1 42 49 am

This is an incremental PR to add a new title and button to the details view.
Will eventually lead to a ContentsTableViewController.

Also included some small updates that seemed apt to me (happy to revert if not).

Note- this is going into a feature branch, and not master.

@lokae0 lokae0 requested a review from n8chur January 16, 2019 10:01
Copy link
Owner

@n8chur n8chur left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -14,8 +14,8 @@ extension DetailPresentingViewModel {
/// This action should be executed with a Bool indicating whether the presentation should be animated.
///
/// - Parameter factory: A factory to be used to generate the presented view model.
/// - Parameter setupViewModel: This closure will be called with the presenting view model when a present action
/// is executed. Consumers can use this to observe changes to the presenting view model if necessary.
/// - Parameter setupViewModel: This closure will be called with the presented view model when a present action
Copy link
Owner

Choose a reason for hiding this comment

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

Thanks for fixing this wording!

@lokae0 lokae0 merged commit c9f47f5 into contents_feature Jan 16, 2019
@lokae0 lokae0 deleted the detail_contents_pt1 branch January 16, 2019 23:33
lokae0 added a commit that referenced this pull request Jan 17, 2019
* Added strings for 'Contents' on details view

* Change simulated delay to 1.0 to be more noticable

* Clarify presenting VM vs presented VM in comments

* Added content list title and button to detail view

* Add some breathing room to stackViews

* Fix unit test timeout
lokae0 added a commit that referenced this pull request Jan 28, 2019
* Added strings for 'Contents' on details view

* Change simulated delay to 1.0 to be more noticable

* Clarify presenting VM vs presented VM in comments

* Added content list title and button to detail view

* Add some breathing room to stackViews

* Fix unit test timeout
lokae0 added a commit that referenced this pull request Jun 13, 2019
* Add content title and button to Details view (#60)

* Added strings for 'Contents' on details view

* Change simulated delay to 1.0 to be more noticable

* Clarify presenting VM vs presented VM in comments

* Added content list title and button to detail view

* Add some breathing room to stackViews

* Fix unit test timeout

* Add Content model and list display (#63)

* Abstract centered label, remove unnecessary button boilerplate, and add spacing view

* No longer excluding colors.txt from project in Xcode

* Add alternate body text color

* Adding content / food enum for testing

* Display contents in detail view

* Further abstract contents list creation and add unit test

* Refactor contents list to be more reactive

* Changes per PR review

* Remove centeredLabel extension in favor of UILabelStyle additions

* Use container stackView instead of spacingView

* Add Basic Food Table View (#66)

* Add FoodTable class cluster

* Populate basic tableView

* Add tests for FoodTable

* Per Swift4 convention, use AnyObject instead of class for protocol constraints

* Per PR review, fix FoodVCFactoryProtocol conformance

* Per PR review, rename FoodTable to FoodInfo

* Per PR review, streamline DetailVM factory protocol parameter

* Per PR review, make cell identifier local var

* Per PR review, update foods dependency structure

* PR cleanup

* Per PR review, cleanup where Food is located
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.

2 participants