-
Notifications
You must be signed in to change notification settings - Fork 108
Update Strings.swift to group strings in enums and update accessors throughout the app. #222
Comments
@sunjunkie should I work on this issue? |
Can you enhance the issue description according to the template? As a [USER], I need [TO DO THIS], so that I can [ACCOMPLISH THAT]. E.g. As a developer, I need to have all constants in the same file so that I can locate or edit these constants easily. You can work on this but, please explain (before you edit your code) which constants you want to extract and how you will organize these constants. |
okk @sunjunkie I will open issue according to template and send pr for it |
@sunjunkie before preceeding to work on this issue I would ask one suggestion as there are so many constants per file..How should I classify them like moving integers into Integers.swift and float values into Float.swift or moving all constants in constants.swift?? |
I'm going to update this issue to better represent the current state of the app. I think the current level of abstraction (as far as cleaning up and aggregating re-usable strings) is fine now, but I also think they could be organized better in Strings.swift. I suggest we update the strings to be grouped in enums, so it's easier to find and identify them throughout the app via code completion. |
Yes, I agree. See also my comments on PR #238. |
Hey @sunjunkie I also think that enum would be good. I have gone through the code base and found that all Strings in Utilities/Strings.swift can be classified into some categories. like |
Hi @vatsalkul , I think this one is fairly safe to go ahead and work on. If you make the changes as proposed and submit a PR, we can review and test it and discuss any further changes that may be necessary. |
@justkd Done! Hope you will like this approach.😇 |
Description
As a developer,
I need to organize the constants in Strings.swift into appropriate enums,
so that the data can be more easily identified and accessed throughout the app via code completion.
Example:
Acceptance Criteria
Update [Required]
Definition of Done
Estimation
2 hours
The text was updated successfully, but these errors were encountered: