Skip to content

Conversation

@philprime
Copy link
Member

No description provided.

@philprime philprime enabled auto-merge (squash) December 29, 2025 10:21
@techprimate-bot
Copy link

techprimate-bot commented Dec 29, 2025

Warnings
⚠️ The Package.swift was updated, but there were no changes in TPPDF.podspec, Package.resolved. Did you forget to update them?

Generated by 🚫 Danger Swift against 1fbd5f9

Copilot AI review requested due to automatic review settings December 29, 2025 11:39
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR migrates the TPPDF library to Swift 6 with strict concurrency checking enabled by updating the Swift tools version from 5.9 to 6.1 and adding necessary Sendable conformances throughout the codebase.

Key changes:

  • Updated Swift tools version from 5.9 to 6.1 in Package.swift
  • Added Sendable conformance to various public types (structs, enums, and classes)
  • Changed static variables to static constants in test files for thread safety
  • Marked test helper static variable as nonisolated(unsafe) where needed

Reviewed changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
Package.swift Updated Swift tools version from 5.9 to 6.1
Source/API/Utils/CrossPlattformGraphics.swift Added Sendable conformance to RectCorner OptionSet and changed static properties to constants
Source/API/Table/Style/PDFTableCellStyle.swift Added @unchecked Sendable conformance for thread safety
Source/API/Table/Style/PDFTableCellBorders.swift Added Sendable conformance
Source/API/Table/PDFTableCell.swift Added @unchecked Sendable conformance
Source/API/Image/PDFImageOptions.swift Added Sendable conformance to OptionSet
Source/API/Graphics/PDFLineType.swift Added Sendable conformance to enum
Source/API/Graphics/PDFLineStyle.swift Added Sendable conformance
Tests/TPPDFTests/PDFGenerator+Generation_Spec.swift Marked test helper static variable as nonisolated(unsafe) for concurrency safety
Tests/TPPDFTests/Graphics/PDFLineType_Spec.swift Changed allTests from var to let for immutability
Tests/TPPDFTests/Graphics/PDFLineStyle_Spec.swift Changed allTests from var to let for immutability
Tests/TPPDFTests/Graphics/PDFLineStyle_Equatable_Spec.swift Changed allTests from var to let for immutability
Tests/TPPDFTests/Graphics/PDFLineSeparatorObject_Spec.swift Changed allTests from var to let for immutability
Tests/TPPDFTests/Graphics/PDFLineSeparatorObject+Equatable_Spec.swift Changed allTests from var to let for immutability
Tests/TPPDFTests/Graphics/PDFGraphics_Spec.swift Changed allTests from var to let for immutability

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@philprime philprime merged commit 358561e into main Jan 13, 2026
10 checks passed
@philprime philprime deleted the swift-6 branch January 13, 2026 10:18
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.

3 participants