Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve object diffing tools #111

Merged
merged 20 commits into from
Mar 12, 2024
4 changes: 3 additions & 1 deletion Sources/CustomDump/Conformances/SwiftUI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@
case .spring():
return "Animation.spring()"
default:
var tracker = ObjectTracker()
let base = _customDump(
Mirror(reflecting: self).children.first?.value as Any,
name: nil,
indent: 2,
isRoot: false,
maxDepth: .max
maxDepth: .max,
tracker: &tracker
)
return """
Animation(
Expand Down
Loading
Loading