Add Screen suffix to all screens. (#125)

This commit is contained in:
Doug
2022-06-30 16:48:46 +01:00
committed by GitHub
parent 83a25d5501
commit 266ca656fc
20 changed files with 141 additions and 136 deletions
@@ -48,7 +48,7 @@ final class BugReportCoordinator: Coordinator, Presentable {
let viewModel = BugReportViewModel(bugReportService: parameters.bugReportService,
screenshot: parameters.screenshot)
let view = BugReport(context: viewModel.context)
let view = BugReportScreen(context: viewModel.context)
bugReportViewModel = viewModel
bugReportHostingController = UIHostingController(rootView: view)
@@ -16,7 +16,7 @@
import SwiftUI
struct BugReport: View {
struct BugReportScreen: View {
// MARK: Private
@@ -139,7 +139,7 @@ struct BugReport_Previews: PreviewProvider {
@ViewBuilder
static var body: some View {
let viewModel = BugReportViewModel(bugReportService: MockBugReportService(), screenshot: Asset.Images.appLogo.image)
BugReport(context: viewModel.context)
BugReportScreen(context: viewModel.context)
.previewInterfaceOrientation(.portrait)
}
}