FitnessKit / FitDataProtocol

Swift Implementation the Garmin Flexible and Interoperable Data Transfer Protocol.
https://fitnesskit.github.io/FitDataProtocol/
MIT License
51 stars 15 forks source link

Question if some mandatory attributes of record message could be made optional #8

Closed mgmart closed 5 years ago

mgmart commented 5 years ago

As one need special equipment to get the data for stanceTime, torqueEffectivenessand pedalSmoothness, I'm wondering if it could be possible to make them optional.

mgmart commented 5 years ago

Sorry, found the nilSelfinitialiser.

khoogheem commented 5 years ago

Good.. I should probably do a better job of showing that can be used.
At the time I didn't like the look of an Optional Struct with Optional values inside, but it may be a better way to go in the long run

mgmart commented 5 years ago

Maybe it is of interest where your library is used: https://github.com/WorkoutExporter/WorkoutExporter/pull/32

And, thank you very much. Without FitDataProtocolwe would not have fit file export within our app.