Is there an API to get the iOS Rapid Security Response version?

Is there an iOS API I can use to get the Rapid Security Response version? The version is a suffix to the OS version e.g. (a), (b), etc, but I don't mind having an API that gives me the full version e.g. 16.4.1 (a).

I have tried UIDevice.current.systemVersion to see if it contains the suffix when run on a Rapid Security Response OS version, but it doesn't (doing that instead of introducing a new API would break lots of existing code anyway).

Here you go: May the 9th be with you! Getting the suffix information is walled by private APIs. The only way to get it is to use the string version of process info and probably perform a regex to extract and other string fun stuff.

Sean!

import Foundation

class VersionModel: ObservableObject {
    init() {}
    @Published var value: String = {
        let process = ProcessInfo.processInfo.operatingSystemVersionString
        return process
    }()
}


import SwiftUI

struct ContentView: View {
    @EnvironmentObject var model: VersionModel
    var body: some View {
        VStack {
            Image(systemName: "globe")
                .imageScale(.large)
                .foregroundColor(.accentColor)
            Text("Version \(model.value)!")
        }
        .padding()
    }
}

struct ContentView_Previews: PreviewProvider {
    static var previews: some View {
        ContentView()
            .environmentObject(VersionModel())
    }
}


import SwiftUI

@main
struct VersionInfoApp: App {
    @StateObject var model = VersionModel()
    var body: some Scene {
        WindowGroup {
            ContentView()
                .environmentObject(model)
        }
    }
}


Is there an API to get the iOS Rapid Security Response version?
 
 
Q