If your application has already been created and downloaded, you will not have a problem.
But if you try to rebuild the application for a new update, and you are out of luck, he called the new Api method the same name as your object method, most likely you can get an error only if the place where you use the method in which you are not using the correct one an identifier, for example Not call self.method1 () and just call method1 (), and your object is inherited from the UIViewController, which has the new Method1 matching it.
Other than that, I would not have to worry about this type of problem, but at least I didn’t have the same problem as the 3-4 years that I programmed for iOS.
Update Based on your comment:
1) Is there any documentation about this or have you tested it yourself in Swift?
I myself tested this because I have Applications on the App Store. So what happens is that no matter what is already loaded, the code will work, because the application you downloaded prepackages Frameworks with their current working Apis and your classes. And no, I have not seen the Documentation about it, I know about it because I personally see it.
2) And I think that you cannot define func method1 () without the override keyword if the UIViewController already has func method1 ()
Right! Assuming APi has a method, you have the Override keyword to write to be able to use this function with the same name. But remember, according to your scenario, you mentioned that the API created this method with this name AFTER you have already loaded your project into the AppStore. Thus, the problem you would see only when performing a new encoding and trying to rebuild the application.
source share