Runtime Warning Finesse (#1023)

This commit is contained in:
Stephen Celis
2022-03-15 16:21:13 -04:00
committed by GitHub
parent 1efde6e57a
commit 2828dc44f6
7 changed files with 49 additions and 53 deletions

View File

@@ -1,9 +1,5 @@
import SwiftUI
#if DEBUG
import os
#endif
/// A view that can switch over a store of enum state and handle each case.
///
/// An application may model parts of its state with enums. For example, app state may differ if a
@@ -1201,8 +1197,7 @@ public struct _ExhaustivityCheckView<State, Action>: View {
.background(Color.red.edgesIgnoringSafeArea(.all))
.onAppear {
#if DEBUG
os_log(
.fault, dso: rw.dso, log: rw.log,
runtimeWarning(
"""
SwitchStore@%@:%d does not handle the current case. …