How namespaces work in Swift Confidential
masterSwift Confidential uses caseless enums to encapsulate generated secrets. You can either create a new namespace or extend an existing one using specific YAML syntax.
Creating a new namespace:
Use create <name>.
Example:
create ObfuscatedLiterals results in internal enum ObfuscatedLiterals { ... }.
Extending an existing namespace:
Use extend <name> [from <module>].
Example:
extend Pinning from Crypto results in extension Crypto.Pinning { ... }.
Note: Nested namespace creation is currently not supported.
YAML Syntax Examples:
# Create new
create ObfuscatedLiterals
# Extend existing
extend Pinning from Crypto