-
Notifications
You must be signed in to change notification settings - Fork 3
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 model and list display #63
Conversation
/** | ||
It's not a side project if you can't have some fun, right? | ||
- [Original.](https://www.youtube.com/watch?v=amONEHAhLHY) | ||
- [Crispy.](https://www.youtube.com/watch?v=1BC1G33-fNY) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BANGER
@n8chur PR updated |
private let spacingView: UIView = { | ||
let view = UIView() | ||
view.snp.makeConstraints { $0.height.equalTo(35) } | ||
return view |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather than having a spacing view, could we have two UIStackViews inside of an outer UIStackView, then just give that UIStackView the appropriate spacing value? If we build it this way, we could even easily use a theme to define the spacing.
.joined(separator: ", ") | ||
} | ||
return Property(observable, initial: "") | ||
}() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks much cleaner! Nice.
@n8chur PR updated |
@n8chur CI failure possibly related to microsoft/azure-pipelines-tasks#8840? |
@lokae0: Yup, pretty sure it’s the same issue. Doesn’t look like anyone’s found a solution yet ¯_(ツ)_/¯ Sent with GitHawk |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
* 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 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
Added Content protocol and an example conforming type. This will next be passed onto the presented table view via protocol. Included a list display transformation with unit test.
colors.txt
is now part of the Xcode project, so the hex values can be modified within the editor.Also made some UI tweaks and code cleanup.
ps. if you want to keep the tone of the project serious, I'm happy to rename the Food enum & cases to something more boring. But then I'll tell your gf and she'll make fun of you