The Profile screen is where ChefDash surfaces the two pieces of identity that define every player session: a name and an emoji avatar. Both values live asDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/ImLukzy/ChefDash/llms.txt
Use this file to discover all available pages before exploring further.
@Published properties on GameState, meaning any future change to either one is immediately reflected in the HomeView HUD chip without any manual refresh. The screen becomes active when gameState.activeTab is set to "profile".
Reaching the Profile Screen
Tapping the player chip in the top-left corner of HomeView is the only navigation path to the Profile screen. The chip displays the player’s avatar emoji, their uppercased name, and their current coin balance. The tap handler setsgameState.activeTab = "profile" with a spring animation:
CustomTabBar for the Profile screen — it sits outside the three main tab bar items and is accessed exclusively through the HomeView chip shortcut.
Displayed Data
The Profile screen presents the twoGameState properties that identify the player:
| Property | Type | Default Value | Where It Appears |
|---|---|---|---|
playerName | String | "Chef Novato" | HomeView HUD chip (uppercased), Profile screen |
playerAvatar | String | "👨🍳" | HomeView HUD chip, Profile screen |
GameState as shown below:
In-Memory State
playerName and playerAvatar are held in memory on the GameState instance for the duration of the app session. They are not persisted to disk in the current implementation — closing and relaunching the app restores both properties to their default values ("Chef Novato" and "👨🍳").
Relationship to the HomeView HUD
BecauseplayerName and playerAvatar are @Published, SwiftUI’s @EnvironmentObject mechanism causes the HomeView player chip to re-render automatically whenever either value changes. The chip reads both properties directly:
GameState values.