This feature introduces subviews for displaying daily, monthly and custom period prices within the application. A SwiftUI picker allows users to seamlessly switch between these subviews, enabling them to view price data in the desired timeframe. The design will inherit the style of the battery view found in the Settings app on iOS.
Acceptance Criteria:
Subviews:
Three subviews are created: one for daily prices, one for weekly prices, and one for monthly prices.
Each subview displays the relevant price data appropriately. (The specific format of the display can be further defined based on project needs.)
Picker:
A SwiftUI picker is implemented to allow users to users to choose between daily, weekly, and monthly price views.
The picker selection updates the displayed subview accordingly.
User Interface:
The subviews and picker are integrated into the application's UI in a visually appealing and intuitive manner, inheriting the style of the battery view in the iOS Settings app. This includes:
Consistent use of background color (typically a light gray)
Rounded corners for the subviews
Clear and concise labels for each subview and picker options
Use of appropriate colors and fonts to match the system theme
Users can easily understand how to switch between price views using the picker.
Feature: Dynamic Price Views with Picker (Inheriting Battery View Style) Description:
This feature introduces subviews for displaying daily, monthly and custom period prices within the application. A SwiftUI picker allows users to seamlessly switch between these subviews, enabling them to view price data in the desired timeframe. The design will inherit the style of the battery view found in the Settings app on iOS.
Acceptance Criteria:
Subviews:
Picker:
User Interface: