Hey there!
I'm trying to organize my code into different classes. In particular I'm trying to organize all the utility functions into one file so that the View is less congested. The approach I have tried is to create a class (Utils) in another file at the same level as the View. I put my utility functions in that file (within the class) and tried to import the class they were in into my View.
It seems that this approach works when I run the app but it seems to give me errors indicating that my functions are undefined when I save the View. E.g. Undefined symbol <utilFunction> detected - where <utilFunction> is the function defined within the Utils Class. I've also tried some permutations between using the "using" keyword and "import" keyword to import the files + experimenting with "public" and "static" modifiers in the Utils class.
Is there a recommended approach on how to import your own classes for use into the View? And why is it that the app still runs successfully but only complains when doing the build on save of the View?