Skip to content

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

Description

@shubham101096

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions