mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Bootstrap custom version of the app for UI tests
This commit is contained in:
@@ -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")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user