If this struct
is in another package, then it’s no wonder that you can’t call it: the member-wise init
has internal
access level. Your only hope is to find at least one public init
on the struct which you can call from your init
. If you can’t find one, then this was either an oversight on the library author’s part or it was a deliberate choice to limit the instantiation of the struct
.
7 Likes