Configure Networking and Pair clients
Make sure that you properly configure Networking and Pair Clients first.Initialize AppKit Client
In order to initialize a client just call aconfigure
method from the AppKit instance wrapper
This example will default to using following namespaces.
AppKit.set(sessionParams: SessionParams(...))
Provided UI components
Now you can use theAppKitButton
or AppKitNetworkButton
components. These two components reflect the state of the AppKit client,
including the session state, account address and balance, currently selected network, and will automatically update when the state changes.
More can be found in https://github.com/reown-com/reown-swift/blob/develop/Sample/Example/ContentView.swift as part of the Sample app.