Skip to content

Add tvOS platform support#83

Open
om-mani-padme-hum wants to merge 1 commit intoexyte:mainfrom
om-mani-padme-hum:add-tvos-support
Open

Add tvOS platform support#83
om-mani-padme-hum wants to merge 1 commit intoexyte:mainfrom
om-mani-padme-hum:add-tvos-support

Conversation

@om-mani-padme-hum
Copy link
Copy Markdown

Summary

  • Bumps swift-tools-version from 5.3 to 5.7 (required for .tvOS platform specifier with version ≥ 16)
  • Adds .tvOS(.v16) to Package.swift platforms

Rationale

SVGView's SwiftUI code compiles for tvOS without modification. However, without .tvOS declared in the package platforms, downstream packages that depend on SVGView cannot cleanly declare tvOS support themselves.

The minimum tvOS version is set to 16.0 because TapGesture (used in SVGNode.swift:38) requires tvOS 16.0+.

The swift-tools-version bump from 5.3 to 5.7 is necessary because .tvOS(.v16) is not available in the 5.3 tools version. This should not affect existing iOS, macOS, or watchOS consumers.

Motivation

This enables SVGView to be used as a dependency in tvOS apps, specifically to support LaTeXSwiftUI on tvOS (see colinc86/LaTeXSwiftUI#77).

Test plan

  • Build for tvOS Simulator target
  • Verify iOS and macOS builds are unaffected

🤖 Generated with Claude Code

- Bump swift-tools-version from 5.3 to 5.7 (required for .tvOS(.v16))
- Add .tvOS(.v16) to Package.swift platforms

This enables SVGView to be used as a dependency in tvOS apps.
The existing SwiftUI code compiles for tvOS without modification.
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