I have the following amplitude code that initializes amplitude
import AmplitudeSwift
let amplitude = Amplitude(
configuration: Configuration(
apiKey: "YOUR-API-KEY"
)
)
The problem is I have to call this code in every file to use amplitude. Is there a way to call it in one file so that I can do amplitude.sharedInstance.track() in other files?