I currently have an app that records audio. When the user records an audio, they can choose to either delete the file or sync it to this particular server.
Now, I’m trying to automate the syncing. I added an option for “auto-sync” on the settings. If this is enabled, when the user finishes recording, it automatically gets synced to the server.
Now, I have file_1.swift → which deals with startRecording, stopRecording and saving the file || and file_2.swift which deals with the syncing and deleting options.
I tried to create the autosync function in file_2.swift which requires the use of some functions from file_1.swift e.g., stopRecording but it would show me this: