Skip to content

Conversation

@biplavbarua
Copy link

Description

This PR adds support for multiple measurement units and refines the weighing interface.

Changes

  • Unit Conversion: Added a picker to switch between Grams (g), Ounces (oz), and Pounds (lb).
  • Tare: Renamed 'Zero Scale' to 'Tare' to better align with standard weighing terminology.
  • UI Updates: Added the unit picker to the top-right corner of the Scale view.

Technical Details

  • Added MeasurementUnit enum in ScaleViewModel to handle conversions.
  • Updated ScaleViewModel to publish selectedUnit.
  • Updated ScaleView to observe unit changes and update the display dynamically.

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.

1 participant