-
Notifications
You must be signed in to change notification settings - Fork 194
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 public init to style struct #59
Conversation
added public init method
What issue does this PR solve ? |
|
Okay, I though structs created the inits automatically but that might not be case when imported as a package? |
I only see public methods and variables:
|
Yes but the compiler creates the init for you? https://docs.swift.org/swift-book/LanguageGuide/Initialization.html#ID213 (See Memberwise Initializers for Structure Types) |
I'm also running into this issue when using this package, not able to init |
Okay, i will have a look |
Unfortuantly the default for a Struct memberwise initializer is 'internal': https://docs.swift.org/swift-book/LanguageGuide/AccessControl.html
|
Thanks for the clarification. I will be merging the PR shortly. |
added public init method