Skip to content

Conversation

@matiasvillaverde
Copy link

Summary

This PR enables compilation and support for Apple's VisionOS platform in the LaTeXSwiftUI package.

Changes Made

Package Configuration Updates

  • Swift Tools Version: Bumped from 5.7 to 5.8 to support VisionOS platform requirements
  • Platform Support: Added .visionOS(.v1) to the supported platforms list alongside existing iOS and macOS support
  • Dependencies: Updated SwiftDraw dependency from version 0.20.1 to 0.22.0 for VisionOS compatibility

Code Compatibility

  • Font Type Aliasing: Extended the platform-specific font type aliasing in LaTeX_Previews+Fonts.swift to include VisionOS alongside other iOS-family platforms
    • Modified the conditional compilation directive to include os(visionOS) in the UIKit import section

Impact

  • No Breaking Changes: All existing functionality remains intact
  • New Platform: Developers can now use LaTeXSwiftUI in VisionOS applications
  • Minimal Changes: Only 7 additions and 6 deletions, keeping the changeset focused and reviewable

Testing Recommendations

  • Verify compilation on VisionOS simulator/device
  • Ensure existing iOS and macOS functionality remains unaffected
  • Test LaTeX rendering on VisionOS to confirm proper display

This is a straightforward platform expansion that maintains backward compatibility while opening up the package to Apple's spatial computing platform.

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