Bootstrap custom version of the app for UI tests

This commit is contained in:
Stefan Ceriu
2022-04-29 10:11:42 +03:00
parent cfd0b14c81
commit 0faac20b04
7 changed files with 114 additions and 22 deletions
+27
View File
@@ -0,0 +1,27 @@
//
// UITestsRootView.swift
// ElementX
//
// Created by Stefan Ceriu on 29/04/2022.
// Copyright © 2022 element.io. All rights reserved.
//
import SwiftUI
struct UITestsRootView: View {
let mockCoordinators: [MockScreens]
var selectionCallback: ((String) -> Void)?
var body: some View {
NavigationView {
List(mockCoordinators) { coordinator in
Button(coordinator.id) {
selectionCallback?(coordinator.id)
}
}
.listStyle(.plain)
}
.navigationTitle("Screens")
}
}