Athlon007 / Leomard

A Lemmy client for macOS
GNU General Public License v3.0
66 stars 3 forks source link

[DEV] Refactor View body into separate @ViewBuilder var/func #20

Closed boscojwho closed 1 year ago

boscojwho commented 1 year ago

Will limit the scope of this issue to these top-level views:

Currently, many views have complicated subview trees (multiple nested views, complex if/else statements, difficult to read what view a view modifier is modifying, etc.)

We can get some quick wins for current/future contributors by refactoring subviews into separate, private view builders.

Doing so would improve readability and allow for more rapid iteration in the future.

Athlon007 commented 1 year ago

I agree that there is a need for refactoring of the UI. This is my first SwiftUI project, and I was learning it as I was working on it. If that's something you're interested in doing - I'm fine with it.

Athlon007 commented 1 year ago

Seems to be done! Thanks a lot for your help :) Closing.