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

Add missing public initializer for SPPerspectiveShadowConfig #3

Merged
merged 1 commit into from Jul 12, 2021
Merged

Add missing public initializer for SPPerspectiveShadowConfig #3

merged 1 commit into from Jul 12, 2021

Conversation

niklasamslgruber
Copy link

Goal

Add public initializer to SPPerspectiveShadowConfig because currently is is impossible to create a custom configuration for the shadow since the initializer is not exposed publicly and thus leads to an error ('SPPerspectiveShadowConfig' is inaccessible due to 'internal' protection level). That is because Swift does not expose the auto-generated member-wise initializer for structs.

Source:

As with the default initializer above, if you want a public structure type to be initializable with a memberwise initializer when used in another module, you must provide a public memberwise initializer yourself as part of the type’s definition.

From: Swift.org

@ivanvorobei ivanvorobei merged commit 1101fc9 into ivanvorobei:main Jul 12, 2021
@ivanvorobei
Copy link
Owner

Thanks!

ivanvorobei added a commit that referenced this pull request Mar 27, 2022
Add missing public initializer for SPPerspectiveShadowConfig
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

Successfully merging this pull request may close these issues.

None yet

3 participants