Skip to content

Instantly share code, notes, and snippets.

// 1. We need to define the screen "global" state
struct ParentState: Equatable {
var view1State: [String]
var view2State: Int
}
enum ParentActions {
case view1(View1Actions)
case view2(View2Actions)
final class DidomiServiceProxy {
static let shared = DidomiServiceProxy()
private static let apiKey = "xxxxxxxxx"
private let service = Didomi.shared
init() {
service.onReady { [weak self] in
print("DIDOMI READY")