0

cannot override delegate functions,

didFinishLaunchingWithOptions and other functions related to app delegates are fine but when i tried to use application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any] = [:]) -> Bool got the warning below and even after running an app it's not invoked.

Instance method nearly matches optional requirements

Also getting the same warning on SafariVC Delegate enter image description here

Moosa Baloch
  • 1,175
  • 1
  • 13
  • 25

1 Answers1

0

MY BAD !!

Actually the main problem with my code is CLASS NAME, i created a class having name URL and as you know NSURL is now URL. Whenever i override any delegates functions having URL in it's parameters Xcode gives me the warning because it gets my URL class not from SDK. So you can say the classes names are also reserved and shouldn't be used.

Moosa Baloch
  • 1,175
  • 1
  • 13
  • 25