Now you can use the AppKitButton 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.
If you want to use custom UI you can present the modal by simply calling.
AppKit.present()
It will traverse the view hierarchy and try to present from top most controller. This is meant more towards SwiftUI.Otherwise you can specify the viewController to present from.
The following publishers are available to subscribe:
public var sessionPublisher: AnyPublisher<[Session], Never>public var sessionSettlePublisher: AnyPublisher<Session, Never>public var sessionRejectionPublisher: AnyPublisher<(Session.Proposal, Reason), Never>public var sessionDeletePublisher: AnyPublisher<(String, Reason), Never>public var sessionResponsePublisher: AnyPublisher<Response, Never>public var socketConnectionStatusPublisher: AnyPublisher<SocketConnectionStatus, Never>public var authResponsePublisher: AnyPublisher<(id: RPCID, result: Result<(Session?, [Cacao]), AuthError>), Never>