Making separate classes and use them in the InterfaceController class (WatchOS development)

I have tried to make a separate class for the location functionality (separate swift file in the Watchkit Exension folder) and I want to use the location instance of that class in the InterfaceController class to track the location of the user. But, xcode gets stuck and I also cannot deploy and test the application. I do not know what the reason is.

Here is the location code:

https://pastebin.com/gTN7hVee

The whole project is here: https://filebin.net/s40xlqzeukfwc39w

I hope you can help me out since I am still a beginner in terms of Swift and WatchKit. Thank you very much.

Terms of Service

Privacy Policy

Cookie Policy