fix(mobile): build the iPad sidebar below iOS 18 #121

Merged
joshuafhiggins merged 1 commits from t3/fix-uitab-availability into main 2026-11-19 19:23:53 -05:00
Owner

iOS builds failed with `'UITab' is only available in iOS 18.0 or newer`. The iPad sidebar from #117 kept playlist rows in a stored property typed `[String: UITab]`, and the app targets iOS 16.4. Stored properties can't be gated with `@available`.

The property now holds `NSObject` values, and the two readers cast back to `UITab`. Both readers already run only on iOS 18.

Tested on the iPad Air 11-inch simulator (iOS 27.2): the build succeeds with the 16.4 deployment target, playlist rows show their covers in the sidebar, and tapping a row opens the playlist.

Changes made by Claude Opus 5.5 (claude-opus-5-5) in Claude Code, running in T3 Code.

🤖 Generated with Claude Code

iOS builds failed with \`'UITab' is only available in iOS 18.0 or newer\`. The iPad sidebar from #117 kept playlist rows in a stored property typed \`[String: UITab]\`, and the app targets iOS 16.4. Stored properties can't be gated with \`@available\`. The property now holds \`NSObject\` values, and the two readers cast back to \`UITab\`. Both readers already run only on iOS 18. Tested on the iPad Air 11-inch simulator (iOS 27.2): the build succeeds with the 16.4 deployment target, playlist rows show their covers in the sidebar, and tapping a row opens the playlist. Changes made by Claude Opus 5.5 (claude-opus-5-5) in Claude Code, running in T3 Code. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
joshuafhiggins added 1 commit 2026-11-19 19:23:37 -05:00
joshuafhiggins merged commit 4980b68375 into main 2026-11-19 19:23:53 -05:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: joshuafhiggins/otunes#121