Add VisionOS Support to LaTeXSwiftUI #2

Open
opened 2025-10-14 15:38:51 -06:00 by navan · 0 comments
Owner

Originally created by @matiasvillaverde on 7/6/2025

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.

*Originally created by @matiasvillaverde on 7/6/2025* ### 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 in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github/LaTeXSwiftUI#2
No description provided.