RKFade
Organization
Reality-Dev
Skills
RealityKit
Swift
Swift Package Manager
visionOS
An open-source Swift package for fading RealityKit entities in and out across Apple platforms, with OpacityComponent support and material-blending fallbacks for older systems.
#RealityKit #Swift #OpenSource
Simple Fades for RealityKit
RKFade is an open-source Swift package that adds convenient fade-in and fade-out animations to RealityKit entities.
On current operating systems, it uses RealityKit’s OpacityComponent to fade an entity and its descendants without changing their materials. Earlier supported systems use material blending as a fallback.
Designed for Real Projects
Recursive fades by default, with optional entity-only behavior
Custom durations through simple
fadeIn()andfadeOut()callsTexture preservation when using the material-blending path
Platform-aware behavior for RealityKit differences across Apple operating systems
Installation and Compatibility
Install RKFade through Swift Package Manager using the GitHub repository. It supports iOS, macOS, Mac Catalyst, tvOS, and visionOS, requires Swift 5.9, and is available under the MIT License.