Check available software update available for iOS

In my project I want to check whether my iPhone's (system's) iOS version is updated to latest released apple iOS version or not..

For getting current iPhone iOS version I have used following code


var systemVersion = UIDevice.current.systemVersion


I would like to know is there any way by which I came to know the latest iOS released by apple programatically??