Skip to content
CAI
Software that uses CAICheck a score

siteline/swiftui-introspect

65.0

Adequate · 14 November 2026

7k

lines of production code

Swift

primary language

5

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

New Showcase app demonstrates SwiftUIIntrospect capabilities

The Examples directory now includes a new Showcase application that serves as a comprehensive demo for the SwiftUIIntrospect library. This app features a tabbed interface with dedicated sections for List, ScrollView, Navigation, Presentation, Controls, and UIViewRepresentable, illustrating how to introspect underlying UIKit and AppKit components across iOS, tvOS, visionOS, and macOS. The implementation covers various introspection targets such as windows, tab views, text fields, toggles, sliders, date pickers, segmented controls, search fields, sheets, and full-screen covers, providing users with concrete examples of applying the library's API in real-world SwiftUI scenarios. Also in this area: 1 commit (1 fix) fixing Examples.

Examples/Showcase/Showcase · medium confidence · unverified

New introspection support for Button, ColorPicker, DatePicker, Form, FullScreenCover, List, and Map types

The \Sources/ViewTypes\ module has been restructured with new abstract view type definitions for common SwiftUI controls, enabling users to introspect their underlying native counterparts. This change adds support for \Button\ (macOS only), \ColorPicker\ (iOS, macOS, visionOS), \DatePicker\ (with specific style variants like \.compact\, \.field\, \.graphical\, \.stepperField\, and \.wheel\), \Form\ (iOS, tvOS, visionOS), \FullScreenCover\ (iOS, tvOS, visionOS), \List\ (with style variants like \.bordered\, \.grouped\, \.insetGrouped\, \.inset\, \.sidebar\), and \Map\ (iOS, tvOS, macOS, visionOS). Each type includes platform-specific availability and version mappings (up to iOS/tvOS/macOS/visionOS 27) to ensure accurate introspection of native views such as \NSButton\, \UIColorWell\, \UIDatePicker\, \UITableView\, \UICollectionView\, \UIPresentationController\, \NSTableView\, and \MKMapView\.

Sources/ViewTypes · high confidence

Removals

Removed legacy XCTest scaffold in IntrospectTests

The legacy XCTest scaffold files (Info.plist and IntrospectTests.swift) have been removed from the IntrospectTests directory. This cleanup eliminates the default placeholder test structure that was previously included, streamlining the test bundle by removing unused boilerplate.

IntrospectTests · high confidence

Behavioural changes

1 commit (0 fixes) modifying Examples/Showcase/Showcase.xcodeproj/project.xcworkspace

A change to existing behaviour in Examples/Showcase/Showcase.xcodeproj/project.xcworkspace — 1 commit, 2 files: “Revamp CI (\#185)” (refs \#185).

Examples/Showcase/Showcase.xcodeproj/project.xcworkspace · medium confidence · unverified

13 commits (1 fix) modifying Examples/Showcase/Showcase.xcodeproj

A change to existing behaviour in Examples/Showcase/Showcase.xcodeproj — 13 commits (1 fix), 1 file: “All-new implementation, API, and module (\#207)”; “Bump to Swift 6.2 and enable upcoming features (\#517)”; “Revamp CI (\#185)”; and 10 more (refs \#207, \#517, \#185, \#516, \#327, …).

Examples/Showcase/Showcase.xcodeproj · medium confidence · unverified

4 commits (0 fixes) modifying Examples/Showcase/Showcase.xcodeproj/xcshareddata

A change to existing behaviour in Examples/Showcase/Showcase.xcodeproj/xcshareddata — 4 commits, 1 file: “All-new implementation, API, and module (\#207)”; “Remove thread hop and update Showcase to latest standards (\#479)”; “\[CI\] Remove min iOS version constraint for UI Tests (\#343)”; and 1 more (refs \#207, \#479, \#343, \#514).

Examples/Showcase/Showcase.xcodeproj/xcshareddata · medium confidence · unverified

New SwiftUI Introspect API with platform version predicates

The library introduces a new \.introspect(...)\ modifier that allows you to customize underlying UIKit or AppKit views from SwiftUI. This new API uses a type-safe \PlatformViewVersionPredicate\ system (e.g., \.iOS(.v13, .v14)\) to target specific platform versions, replacing the previous method of introspection. It supports both \receiver\ and \ancestor\ scopes for finding views, and includes built-in support for iOS, tvOS, macOS, and visionOS versions up to v27.

Sources · high confidence

Removal of Xcode project file

The Introspect.xcodeproj/project.pbxproj file has been deleted, indicating that the project is no longer managed via the traditional Xcode project file format. This suggests a migration to a different build system (such as Swift Package Manager) or a restructuring of the project's build configuration, which may require users to update their integration method for the Introspect framework.

Introspect.xcodeproj · medium confidence

Removal of legacy macOS framework scaffolding

The Introspect module has removed its legacy macOS-specific framework scaffolding, specifically the Info.plist and Introspect.h header files. This cleanup eliminates the old bundle configuration and public header exports that were previously used for the macOS target, aligning the project structure with its current multi-platform support.

Introspect · high confidence

Workspace restructured for SwiftUIIntrospect with updated Xcode settings

The project workspace has been renamed to SwiftUIIntrospect and reorganized to explicitly reference the Showcase and Tests projects. Workspace settings have been updated to Xcode 27 standards, including disabling the automatic creation of contexts and schemes, and the shared scheme is now configured to build and test the SwiftUIIntrospect target with parallelization enabled.

SwiftUIIntrospect.xcworkspace · high confidence

Test coverage

Added comprehensive test suite for SwiftUIIntrospect

Added a new test framework and extensive unit tests covering the SwiftUIIntrospect library. The tests verify platform entity traversal logic, platform version predicates (iOS, macOS, tvOS, visionOS), and introspection capabilities for various SwiftUI views including Buttons, ColorPickers, DatePickers (with various styles), Forms, Lists, and FullScreenCovers across multiple OS versions.

Tests · high confidence

Dependencies

Swift 6.2 upgrade with upcoming features and expanded platform support

The library has been updated to Swift 6.2, enabling several upcoming language features including ExistentialAny, ImmutableWeakCaptures, InferIsolatedConformances, InternalImportsByDefault, MemberImportVisibility, and NonisolatedNonsendingByDefault. Platform support has been explicitly defined for iOS 13+, Mac Catalyst 13+, macOS 12+, tvOS 13+, and visionOS 1, ensuring compatibility with current Apple operating systems.

(dependencies) · high confidence

Housekeeping

Initial repository setup and tooling configuration

The repository has been initialized with essential configuration files to standardize development workflows. This includes an \.editorconfig\ to enforce consistent indentation (tabs for Swift/JSON, spaces for Markdown/YAML) and line endings, a \.gitignore\ to exclude build artifacts and IDE files, and a \.swift-version\ file specifying Swift 6.2 as the target language version. Additionally, code formatting is managed via \SwiftFormat\ (v0.63.0) configured in \.swiftformat\, and pre-commit hooks are defined in \hk.pkl\ and \mise.toml\ to automatically lint Swift files before commits.

(repo-wide) · high confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 65 → 65 (+0.1)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.

Lenses

  • Code Health 99 → 100 (+0.3)
  • Architecture 100 → 99 (-1.3)
  • Maturity 60 → 58 (-2.0)
  • Readiness 48 → 50 (+1.5)
  • Security 100 → 100 (+0.0)

Resolved (8)

  • Duplicated block (5 lines × 2) (Examples/Showcase/Showcase/Controls.swift)
  • Duplicated block (5 lines × 2) (Examples/Showcase/Showcase/Controls.swift)
  • Duplicated block (6 lines × 3) (Examples/Showcase/Showcase/Controls.swift)
  • Duplicated block (7 lines × 2) (Examples/Showcase/Showcase/Controls.swift)
  • Duplicated block (7 lines × 3) (Examples/Showcase/Showcase/Controls.swift)
  • Duplicated block (8–9 lines × 2) (Examples/Showcase/Showcase/Controls.swift)
  • Duplicated block (9 lines × 2) (Examples/Showcase/Showcase/Controls.swift)
  • Off-boarding risk: anonymized user #1

New (2)

  • High interface indirection
  • Off-boarding risk: anonymized user #1

Changes since last survey

  • 3 commits — 1 feature/other, 2 fixes

By area

  • Sources/ViewTypes — 2 commits
  • Tests/Tests — 1 commit

Notable commits

  • fix: chore: fix inaccurate docs and remove stale project files (#530)
  • fix: fix: correct .sheet inference on .v27 and unavailability diagnostics (#528)
  • change: test: run tests that were being silently skipped (#529)

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

siteline/swiftui-introspect was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 14 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 404c0ed902531a749e3a05dcc076b62e2e4a24cc — the exact code this score is about.
  • Scored under rubric-2026.11.4 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.65+preprod-3c33c1882dc1.