Skip to content

Conversation

@NikolaStojanovicVicert
Copy link
Contributor

@NikolaStojanovicVicert NikolaStojanovicVicert commented Nov 17, 2025

Description

This PR introduces a sibling debugScan modifier, which takes in a some View metatype (and internally translates this to a String via String.init(describing:)).

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Code cleanup/refactoring
  • Test improvements
  • Build/CI improvements

Screenshots/Logs

Checklist

  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have updated the CHANGELOG.md (if applicable)

Note

Adds a new type-based debugScan overload that derives labels from view types, with comprehensive tests and updated docs/CHANGELOG.

  • SwiftUI Modifier:
    • Add type-based overload debugScan(_ label: (some View).Type) in Sources/SwiftUIDebugScan/DebugScan.swift that generates labels via String(describing:).
    • Cross-reference docs between string-based and type-based debugScan variants.
  • Tests:
    • Add extensive test coverage in Tests/SwiftUIDebugScanTests/ViewInspectorTests.swift for built-in, generic, and custom view types; equivalence with string-based labels; integration across view hierarchies; and explicit type requirements.
  • Changelog:
    • Update CHANGELOG.md with 0.3.0 "Added" entries describing the new overload, behavior, and tests.

Written by Cursor Bugbot for commit 105427e. Configure here.

@NikolaStojanovicVicert NikolaStojanovicVicert merged commit 9b50f11 into main Nov 17, 2025
4 checks passed
@NikolaStojanovicVicert NikolaStojanovicVicert deleted the feature/add-sibling-modifier branch November 17, 2025 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants