healthDataAccessRequest

Has anyone used healthDataAccessRequest successfully in SwiftUI? How does parameter trigger work?