mirror of
https://github.com/pointfreeco/swift-composable-architecture.git
synced 2025-12-24 12:14:25 +01:00
Better type names in WithViewStore.debug. (#1973)
This commit is contained in:
@@ -163,13 +163,6 @@ public struct WithViewStore<ViewState, ViewAction, Content: View>: View {
|
||||
?? "(No difference in state detected)"
|
||||
}
|
||||
?? "(Initial state)\n\(stateDump)"
|
||||
func typeName(_ type: Any.Type) -> String {
|
||||
var name = String(reflecting: type)
|
||||
if let index = name.firstIndex(of: ".") {
|
||||
name.removeSubrange(...index)
|
||||
}
|
||||
return name
|
||||
}
|
||||
print(
|
||||
"""
|
||||
\(prefix.isEmpty ? "" : "\(prefix): ")\
|
||||
|
||||
Reference in New Issue
Block a user