Swift Package Unit Test classifies a public class as ‘private’, yet honors a struct. Why?

Goal: To access a package's variable/func within a Unit Test.

Problem: I can access a Struct but not a Class.
The package Unit Test thinks it's a private vs public variable or function.

Question: Why?, Remedy?

enter image description here

enter image description here

Here's the entire view of the Swift Package:

enter image description here

Read more here: https://stackoverflow.com/questions/68490155/swift-package-unit-test-classifies-a-public-class-as-private-yet-honors-a-str

Content Attribution

This content was originally published by Frederick C. Lee at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: