You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a new View in the Feed/Views called BinaryFeedPost. Implement the below screenshot:
There will be one instance variable of type BinaryPost. You should get the tags from the categories, the username from the username attribute, the profile photo from the profilePhoto attribute, the question will be from the question attribute, the response options will be from responseOption1 & responseOption2, the time since posting will be from the postDateAndTime (with a function called on it to convert it to "2d ago" - this function is not implemented yet, just put the full date on the view for now), and number of votes is a sum of responseResult1 & responseResult2.
Here is example code of how to display the profile photo. Instead of a rectangle if the profilePhoto string is empty, do a system image with a generic Person icon.
The text was updated successfully, but these errors were encountered:
jifonthespoon
changed the title
Create binary take feed post
Create a view to show binary take feed posts
Feb 20, 2025
Create a new View in the Feed/Views called BinaryFeedPost. Implement the below screenshot:
There will be one instance variable of type BinaryPost. You should get the tags from the categories, the username from the username attribute, the profile photo from the profilePhoto attribute, the question will be from the question attribute, the response options will be from responseOption1 & responseOption2, the time since posting will be from the postDateAndTime (with a function called on it to convert it to "2d ago" - this function is not implemented yet, just put the full date on the view for now), and number of votes is a sum of responseResult1 & responseResult2.
Here is example code of how to display the profile photo. Instead of a rectangle if the profilePhoto string is empty, do a system image with a generic Person icon.
The text was updated successfully, but these errors were encountered: