The default initializers for public structs in Swift is internal [1] which prevents EllipticCurveKeyPair.Helper from being instantiated. This reduces flexibility in the design because the only way to use EllipticCurveKeyPair.Helper is through the opinionated EllipticCurveKeyPair.Manager class.
Class documentation for both Manager and Helper seem to suggest that wrapping Helper in a facade is intended functionality, which is currently not available.
The default initializers for public structs in Swift is
internal
[1] which preventsEllipticCurveKeyPair.Helper
from being instantiated. This reduces flexibility in the design because the only way to useEllipticCurveKeyPair.Helper
is through the opinionatedEllipticCurveKeyPair.Manager
class.Class documentation for both
Manager
andHelper
seem to suggest that wrappingHelper
in a facade is intended functionality, which is currently not available.[1] https://docs.swift.org/swift-book/LanguageGuide/AccessControl.html#ID19