You've replaced UIApplication.LaunchOptionsKey with UIApplicationLaunchOptionsKey in the function signature. Replace it back to fix the error
UIApplication.LaunchOptionsKey
UIApplicationLaunchOptionsKey