Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why public/open access level specified with swift classes? #1249

Open
shubham101096 opened this issue Sep 22, 2021 · 0 comments
Open

Why public/open access level specified with swift classes? #1249

shubham101096 opened this issue Sep 22, 2021 · 0 comments

Comments

@shubham101096
Copy link

In this project, all the classes which are written in swift and are used by objective c files have been declared as public/open. Even their functions and variables which are used by objective c files have been declared public/open. Is it necessary to declare the classes/their functions public in order to be accessed by objective c classes? Because in apple documentation I could not find any such rule.
Eg: ServerCapabilitiesViewController class has been declared public and it also has a public init method. Could it also had been declared without any explicit access level?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant