Shubham0812 / HabitTracker_UI

Habits and Goal Tracker application using the SwiftUI Framework
Apache License 2.0
59 stars 26 forks source link

Create a Color Palette #7

Open Shubham0812 opened 3 years ago

Shubham0812 commented 3 years ago

Requirement

Create a Color Palette struct/enum that returns the color based on the type provided. The Type should take the current theme of user device into consideration.

Proposed Solution

Create a struct/enum name ColorPalette inside utils and define the colors for

Make sure that you take the device's theme in consideration, so you'll need to check the value of the ColorScheme variable.

Alternate Solution

You can also define named colors in the Assets folder, give Light and Dark appearance and then wrap it in an enum or struct.

JapneetSingh5 commented 3 years ago

Can you assign this to me please? Thank you!