I have a struct defined in Swift with public properties
public struct MyStruct {
public let prop1: String
public let prop2: String
}
In my code, I try to initialize the struct by doing
MyStruct(prop1: "abc", prop2: "def")
But I get complier error saying 'MyStruct initializer is inaccessible due to 'internal protection' level.
The struct and member are in public protection level. So I don't understand what is 'internal' protection level.