Skip to content
CAI
Software that uses CAICheck a score

patchthecode/JTAppleCalendar

53.0

Weak · 14 November 2026

5k

lines of production code

Swift

primary language

7

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

JTAppleCalendar is a Swift-based iOS and tvOS library that provides customizable calendar views, including month and year displays with support for range selection and international calendars like the Persian calendar. The system exposes a core API for configuring scrolling modes, cell sizes, and programmatic cell customization, while managing user interactions and delegate callbacks. It is distributed as a standalone framework compatible with modern dependency managers like Swift Package Manager and Carthage, targeting iOS 11+ and tvOS 11+.

How it got here

2016 — Modernization and SPM support

7 changes.

The project underwent significant modernization by updating CI configurations, restructuring documentation, and dropping legacy iOS example assets. It introduced Swift Package Manager support, raised minimum deployment targets to iOS 11, and reorganized the project structure to facilitate framework distribution.

2019–2020 — Initial library release and sample app

6 changes.

This period established the core JTAppleCalendar library with its foundational source components and API. It also introduced a comprehensive iOS sample application to demonstrate usage, alongside initial test suites for both Linux compatibility and UI verification.

Features

Added iOS sample application with calendar view examples

The SampleJTAppleCalendar project has been added, providing a complete iOS application that demonstrates the JTAppleCalendar library. This sample includes a main interface for configuring month views (scrolling modes, cell sizes, date generation) and dedicated example screens for Persian calendar support, range selection, year views, and programmatic cell/header customization.

SampleJTAppleCalendar · high confidence

Initial release of JTAppleCalendar source components

This change introduces the core source files for the JTAppleCalendar library, including the main view controllers (JTACMonthView, JTACYearView), cell implementations (JTACDayCell, JTACMonthCell), and the underlying data models and enums (CalendarEnums, CalendarStructs). It establishes the foundational API for configuring calendar parameters, handling user interactions like selection and scrolling, and managing delegate callbacks for cell customization and header views.

Sources · high confidence

Removals

Removal of legacy iOS example app assets

The example project for JTAppleCalendar has removed its legacy iOS application structure, specifically deleting the \AppDelegate.swift\, \LaunchScreen.xib\, and \Main.storyboard\ files. This indicates a shift away from the traditional storyboard-based iOS example setup, likely to modernize the demo or align it with a different project configuration.

Example/JTAppleCalendar · high confidence

Removal of placeholder Pod structure files

The placeholder files for the Pod module have been removed, specifically deleting the \.gitkeep\ files in \Assets\ and \Classes\, as well as the \ReplaceMe.swift\ source file. This cleanup eliminates the initial scaffolding artifacts from the project structure.

Pod · high confidence

Removed JTAppleCalendar example project workspace

The JTAppleCalendar example project file (project.pbxproj) has been deleted from the repository. This removes the Xcode project configuration for the example application and its associated test suite, which previously included source files, storyboards, and CocoaPods integration settings.

Example/JTAppleCalendar.xcodeproj · high confidence

Architecture

Reorganized project structure for framework distribution

The JTAppleCalendar project files have been restructured to support building the library as a standalone framework (JTAppleCalendar.framework). This includes adding the necessary Xcode project configuration, workspace settings, and build schemes, which facilitates integration via package managers like Carthage and ensures the framework is correctly assembled for consumers.

JTAppleCalendar.xcodeproj · high confidence

Behavioural changes

Sample app project migrated to new structure and Xcode 11

The sample application project has been reorganized and renamed from 'JTAppleCalendar\_Example' to 'SampleJTAppleCalendar'. This change includes migrating the project file to Xcode 11 (object version 52) and updating the build scheme to target the new application and UI test bundles. The project structure now explicitly groups example components such as range selection, year view, Persian calendar, and custom cell headers, providing a cleaner reference implementation for users.

SampleJTAppleCalendar.xcodeproj · high confidence

Updated CI configuration and documentation structure

The Travis CI configuration has been updated to use Xcode 10 and explicitly build for both iOS and tvOS simulators, replacing the previous generic setup. The project documentation has been significantly restructured: the README now highlights key features like range selection and custom cells, includes badges for Carthage compatibility and sponsor support, and links to a new local documentation directory. Additionally, a CHANGELOG.md file has been added to track version history, and a .tailor.yml file has been introduced to configure code style linting rules.

(repo-wide) · high confidence

Fixes

Added SPM workspace configuration files

Added the necessary \.xcworkspace\ configuration files (\contents.xcworkspacedata\ and \IDEWorkspaceChecks.plist\) to the \.swiftpm\ directory. This ensures that the Swift Package Manager package is correctly recognized and configured within the Xcode workspace environment, resolving issues related to workspace setup.

.swiftpm · high confidence

Test coverage

Added UI test suite for the sample application; Added initial test suite for JTAppleCalendar on Linux; Removal of placeholder test suite in Example/Tests.

Dependencies

JTAppleCalendar v8.0.5: Swift Package Manager support and iOS 11+ requirement

The JTAppleCalendar library has been updated to version 8.0.5, introducing official Swift Package Manager (SPM) support via a new Package.swift file and dropping the Example/Podfile in favor of this modern dependency manager. For users, this update raises the minimum deployment target to iOS 11.0 and tvOS 11.0, and requires Swift 5, while also adding a privacy manifest (PrivacyInfo.xcprivacy) to the resource bundles.

(dependencies) · 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 52 → 53 (+1.4)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.

Lenses

  • Code Health 91 → 86 (-5.4)
  • Architecture 96 → 98 (+1.4)
  • Maturity 48 → 48 (+0.0)
  • Readiness 30 → 34 (+4.3)
  • Security 100 → 100 (+0.0)

Resolved (9)

  • Duplicated block (9 lines × 2) (SampleJTAppleCalendar/ExampleSectionHeaders/HeaderAsClass/CodePinkSectionHeaderView.swift)
  • Inverted test pyramid
  • Low cohesion: SceneDelegate (LCOM4 6) (SampleJTAppleCalendar/SceneDelegate.swift)
  • Low cohesion: TestPersianCalendar (LCOM4 4) (SampleJTAppleCalendar/Example Calendars/TestPersianCalendar.swift)
  • Low cohesion: TestYearViewViewController (LCOM4 4) (SampleJTAppleCalendar/Example Calendars/TestYearViewViewController.swift)
  • MethodTooLong: JTACMonthView.scrollViewWillEndDragging (Sources/JTAppleCalendar/JTACScrollViewDelegates.swift)
  • No ADRs found
  • TooManyMethods: JTACMonthLayout (Sources/JTAppleCalendar/JTACMonthLayout.swift)
  • TooManyMethods: JTACMonthView (Sources/JTAppleCalendar/JTACMonthView.swift)

New (5)

  • Edited copy of a member (10 corresponding lines) (Sources/JTAppleCalendar/JTACCollectionMonthViewDelegates.swift)
  • Edited copy of a member (3 corresponding lines) (Sources/JTAppleCalendar/JTACMonthCell.swift)
  • Edited copy of a member (5 corresponding lines) (Sources/JTAppleCalendar/JTACInteractionMonthFunctions.swift)
  • Edited copy of a member (65 corresponding lines) (Sources/JTAppleCalendar/JTACMonthLayoutHorizontalCalendar.swift)
  • No ADRs found (SampleJTAppleCalendar.xcodeproj/project.pbxproj)

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

Survey your own repository

patchthecode/JTAppleCalendar 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 6a19c89f40b928c7bf7cf43a7df1fef739b8a0ab — 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-e1a3b69fc8ee.