hey @GMacD53
I don’t understand why the answers are about structs versus enums versus……. when my question was about reformatting the code into chunks and in line?
Class properties are code.
In general, over time, you may find you want to modularize your code to simplify what the compiler / git has to do on code change..
Move static class properties into a struct -> new file
Move the global-> new file.
Refactor common code into helper functions -> new file
These all reduce the number of lines in your class. Xcode is very powerful as well - code folding, auto-indent, class browser, holding down the command key while moving the mouse, right click -> find symbol etc to quickly navigate have all helped me. have fun + good luck!
Topic:
Programming Languages
SubTopic:
Swift
Tags: