Structures

The following structures are available globally.

  • IdoManagerView is a struct which displays Idopte Manager GUI in a WebView. Here, is a basic use of this struct from an empty swiftUI app in order to display Idopte Manager from a button:

    Example

    import ScmApi
    
    struct ContentView: View {
    
        @State private var showWebView = false;
    
        var body: some View {
            Button (action: {
                showWebView.toggle();
            }, label: {
                Text("Button")
            })
            IdoManagerView(shouldShow: $showWebView);
        }
    }
    

    Note

    The showWebView is a binding variable which allows the WebView to be shown when it is set to true and hiden when it is set to false. It is also possible to know the state of this WebView.

    Declaration

    Swift

    public struct IdoManagerView : View