Skip to content

Add tvOS platform support#76

Closed
om-mani-padme-hum wants to merge 3 commits into
colinc86:mainfrom
om-mani-padme-hum:add-tvos-support
Closed

Add tvOS platform support#76
om-mani-padme-hum wants to merge 3 commits into
colinc86:mainfrom
om-mani-padme-hum:add-tvos-support

Conversation

@om-mani-padme-hum

Copy link
Copy Markdown

Summary

  • Adds .tvOS(.v15) to Package.swift platform targets
  • Includes os(tvOS) in all #if os(iOS) || os(visionOS) conditional compilation checks across 9 source files
  • Adds tvOS 18.0 to @available annotations for TextRenderer/TextAttribute APIs (EquationMarker, LineSpacingNormalizer)

Rationale

All three dependencies already support tvOS:

  • MathJaxSwift 3.5.0 — declares .tvOS(.v13)
  • SwiftDraw 0.27.0 — declares .tvOS(.v13)
  • swift-html-entities 4.0.1 — no platform restrictions

Since tvOS uses UIKit, the existing iOS/visionOS code paths (UIImage, UIFont, UIColor, UITraitCollection, UIContentSizeCategory, font descriptor traits) all apply directly with no behavioral changes needed.

This follows the same pattern as #41 which added visionOS support.

Test plan

  • Build for tvOS simulator target in Xcode
  • Run existing test suite against tvOS
  • Verify LaTeX rendering in a sample tvOS app

🤖 Generated with Claude Code

Rich Lowe and others added 3 commits April 5, 2026 22:23
All dependencies (MathJaxSwift, SwiftDraw, swift-html-entities) already
declare tvOS support. Since tvOS uses UIKit, the existing iOS/visionOS
code paths apply directly.

Changes:
- Add .tvOS(.v15) to Package.swift platform targets
- Include os(tvOS) in all #if os(iOS) || os(visionOS) conditionals
- Add tvOS 18.0 to @available checks for TextRenderer/TextAttribute APIs

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@om-mani-padme-hum

Copy link
Copy Markdown
Author

Closing in favor of a corrected PR. This branch was based on main (v2.0.0) which uses SwiftDraw instead of SVGView. The replacement PR will be based on the v1.3.2 tag for broader compatibility.

@om-mani-padme-hum om-mani-padme-hum deleted the add-tvos-support branch April 6, 2026 18:59
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.

1 participant