Health Kit Authorization

Can anyone assist with the Swift code for authorizing access to the Health Kit data? Everything I'm finding is over two years old and written in Objective C. I'm having problems with with getting the parameters of requestAuthorization. I'm new to Swift and taking online tutorials but they do not cover Health Kit. I'm only interested in reading data and not changing it.

Any guidance you can provide is so greatly appreciated.

Kevin

Please ask questions about Apple frameworks on the Apple developer forums.

Agreed. This topic is best suited for the Apple forums; there will be better subject-matter experts there, and they certainly ought to be knowledgeable about how best to use their framework from Swift.