Skip to content

Conversation

@sno0pastaaa
Copy link

@sno0pastaaa sno0pastaaa commented Oct 28, 2025

Summary
This change modernizes the app’s entry point and ensures concurrency safety under Swift 6 by introducing @mainactor isolation to key components.

Changes
• Replaced @UIApplicationMain with @main for a clean Swift-based entry point.
• Applied @mainactor isolation to ViewController, TaskDelegate, and related rendering logic.
• Validated safe usage of CVMetalTexture under @preconcurrency isolation.
• Modernized Info.plist: removed deprecated UIRequiresFullScreen and aligned supported orientations.
• Improved MetalBuffer APIs for Swift 6 compliance: element-typed assign methods, safer array initializer, resource option honoring, and safe raw copy logic.
• Left harmless warnings for simd_float matrix Codable conformance (expected until SDK provides native support).

Testing
• Verified build and runtime stability under Xcode 16 / iOS 26 SDK (Swift 6).
• Ensured consistent rendering output with and without @mainactor isolation.
• Confirmed no regressions in texture handling or orientation behavior.

Notes
These updates bring the project in line with modern Swift concurrency and Metal safety guidelines, eliminating deprecated constructs and potential concurrency pitfalls.

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