Apple provided this API as part of the latest iOS 18.2 updates.
https://developer.apple.com/documentation/UIKit/UIApplication/isDefault(_:)
It poses explicit examples for the Default Browser scenario, though it can be used for other default apps (e.g. mail app).