Skip to content

Conversation

@ZaidMadanat
Copy link
Collaborator

Created visibility filter to only show meals if at least one menu item exists. Filter through VisibleTabs to remove the Breakfast/Dinner if they are empty.

Copy link
Collaborator

@justinwongeecs justinwongeecs left a comment

Choose a reason for hiding this comment

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

I was thinking of not modifying BMSegmentedControlView.swift but instead in DiningDetailView.swift we dynamically pass in the filtered array of strings into the tabNames parameter for the BMSegmentedControlView.

BMSegmentedControlView(tabNames: ["Breakfast", "Lunch", "Dinner"], selectedTabIndex: $selectedTabIndex)

Instead of hardcoding the three tabs, we should derive it dynamically within DiningDetailView.

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.

3 participants