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

Accessing Search function requires public on init #20

Open
martyuiop opened this issue Jun 6, 2023 · 0 comments
Open

Accessing Search function requires public on init #20

martyuiop opened this issue Jun 6, 2023 · 0 comments

Comments

@martyuiop
Copy link
Contributor

martyuiop commented Jun 6, 2023

Unable to access the search function from package unless adding public to the init of the public class.
Possible you had another mechanism for using the search? if not, one word fix. or I can submit a PR

eg.

let mySearch = FontAwesome().search(query: symbolSearch.lowercased())
results in
'FontAwesome' initializer is inaccessible due to 'internal' protection level
Even though FontAwesome class is public because init is not explicitly public also
adding 'public' to the init() corrects this

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