-
-
Notifications
You must be signed in to change notification settings - Fork 43
SwiftUi redesign menu view in map #416
SwiftUi redesign menu view in map #416
Conversation
Instead of having multiple state variables, a view model is introduced Further, less variables are passed between the components. The selection of a canteen is done by only one variable, instead of having multiple (name, annotation index)
- reduce size of date circle in menu view - change color of current date in menu view - remove arrow from categories (since there is typically only one dish per category) - show labels only after clicking on the info button - add "click-animation" when clicking on a cafeteria in the list
@Philipp000 What's the current status of the PR? Can we merge it soon? :) |
From my side it should be ready to merge. I think @AW-tum wanted to merge it/look it at |
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.
Really nice PR, thanks! :)
Design-wise it looks basically perfect! I only left some comments regarding the concrete implementation of it, mostly some state-of-the-art techniques.
Also, a thing I'm just thinking of now: Maybe we should cut down the ingredients displayed, as it may be confusing and not really comprehensible. @AW-tum what's your take on this? |
What do you mean about the ingredients? I have also another small issue, that I wasn't able to fix: |
I just had a look at it in the simulator and I have a few UI remarks First of all I would stretch the calendar view of the days along the whole screen (right now it seems a little squashed in the center). Also I would handle the ingredients a little differently. When you open the ingredient subview you get a list of the ingredients as well as their icons. The point of the icons is that we don't have to write out the ingredients every time and therefore save space onscreen. Today (Sunday) obviously no menu can be displayed. For me at least, it hence portrays a blank screen below the calendar-bar. Instead of showing a blank screen I would either show some form of "no menu today"/"cafeteria closed on weekends"/etc. or show the next available menu (in todays case, the one of upcoming Monday). We could signal to the user that it's not actually todays menu by highlighting the menus date with the black circle, setting it apart from a TUM-blue circle to highlight the usage dates day. |
See @AW-tum remarks |
- added "done" to Localization Strings
Issue
I think the implementation on how to access a menu in the swift-ui map is currently not very intuitive, with the small toolbar on the top.
Here I implemented a behavior which is more similar to the one used in Apple "Where is?" app.
Therefore, I completely remove the toolbar.
Further actions could be implemented directly into the panel.
Additionally, I fixed a few issues regarding the dark mode and the menu view.
Screenshot
Bildschirmaufnahme.2022-03-08.um.17.23.42.mov