rahulsinghotx wrote:
Do we have any API or a way to figure out the latest os(iOS/iPadOS) version available in the market. I can see that we have Apple Developer Documentation which provides the information. Can this information be achieved in code using Swift? Do we have any built-in API for this?
There is no Swift API and no general API for this purpose AFAIK, with the command line softwareupdate command on macOS being about the closest analog (and that's for macOS, of course), though there is an omnibus release RSS feed available from Apple Developer, and which can probably be workable here and possibly with some added text processing and filtering:
https://developer.apple.com/news/releases/rss/releases.rss
You'll need to subscribe to and periodically poll the RSS feed, and then scan for packages and updates of interest.
I don't know of a way for a client-initiated scan to trigger an update locally (if that's where this is headed), though there is the documented Apple mechanism for that purpose. Settings > General > Software Update > Automatic Updates [on]