'How to get the state(enabled/disabled) of IOS Safari extension?

This SO is about how to get the state of a macOS safari extension. Wondering how it can be done with IOS ? (In its app container aka via swift)

P.S: the mac code won't work on IOS as it gives:

Cannot find 'SFSafariExtensionManager' in scope

which the error makes sense as in developer doc, IOS is not included.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source