PVUI/Sources/PVUIBase/SwiftUI/DeltaSkins/README.md
This folder contains the implementation of the DeltaSkins specification from Delta-Docs.
Models/ - Core data structures and parsingViews/ - SwiftUI views for displaying skinsProtocols/ - Interface definitionsResources/ - Test skins and assetsTo display a skin in your view:
DeltaSkinScreensView(
skin: skin,
traits: DeltaSkinTraits(
device: .iphone,
displayType: .standard,
orientation: .portrait
),
containerSize: view.bounds.size
)
To show a grid of available skins:
DeltaSkinListView(
traits: DeltaSkinTraits(
device: .iphone,
displayType: .standard,
orientation: .portrait
),
gameType: "com.rileytestut.delta.game.gbc"
)
Enable debug mode to show button mappings and screen frames:
DeltaSkinScreensView(skin: skin, traits: traits, containerSize: size)
.environment(\.debugSkinMappings, true)
The UITesting app provides two main testing interfaces:
DeltaSkinTestView
DeltaSkinListView
The implementation includes validation for:
When FeatureFlag.advancedSkinFeatures is enabled:
Each system has specific screen configurations and default sizes handled by the implementation.