Files
letro-ios/ElementX/Sources/UITestsRootView.swift
2022-07-06 16:01:50 +01:00

28 lines
682 B
Swift

//
// UITestsRootView.swift
// ElementX
//
// Created by Stefan Ceriu on 29/04/2022.
// Copyright © 2022 Element. All rights reserved.
//
import SwiftUI
struct UITestsRootView: View {
let mockScreens: [MockScreen]
var selectionCallback: ((UITestScreenIdentifier) -> Void)?
var body: some View {
NavigationView {
List(mockScreens) { coordinator in
Button(coordinator.id.description) {
selectionCallback?(coordinator.id)
}
.accessibilityIdentifier(coordinator.id.rawValue)
}
.listStyle(.plain)
}
.navigationTitle("Screens")
}
}