I would recommend this demonstration with source from Apple: https://developer.apple.com/videos/play/wwdc2024/10152/