It is useful to know the version of the operating system your app is running on. You might use this information to access a feature that is only available on certain OS versions or perhaps you want to include it in logging data to help troubleshoot. Regardless, you can fetch this information from the System.VersionData class.
Tag: Operating System
In some cases it may be of interest to also get the Build Phase of the OS; so I built you a class you can use to get both the Major and Minor version of the OS as the Build Phase on macOS, Windows and iOS. In addition, you can use this class with Xojo releases previous to Xojo 2019r3.