Skip to content

Fix deprecated UIScreen.main usage across iOS and tvOS#1995

Closed
bnicholson2050 wants to merge 1 commit into
jellyfin:mainfrom
bnicholson2050:fix/uiscreen-main-deprecation
Closed

Fix deprecated UIScreen.main usage across iOS and tvOS#1995
bnicholson2050 wants to merge 1 commit into
jellyfin:mainfrom
bnicholson2050:fix/uiscreen-main-deprecation

Conversation

@bnicholson2050

@bnicholson2050 bnicholson2050 commented Apr 30, 2026

Copy link
Copy Markdown

UIScreen.main was deprecated in iOS 16. This replaces all usages across the codebase with the modern window scene API. On iOS, the active UIWindowScene is used to get the screen. On tvOS, UIScreen.main is kept as it doesn't have the same window scene limitations. Also fixes a bug where scaleHeight was accidentally using maxWidth instead of maxHeight when scaling image dimensions. This is a fix by Claude Code

@bnicholson2050 bnicholson2050 marked this pull request as draft April 30, 2026 16:22
@bnicholson2050 bnicholson2050 marked this pull request as ready for review April 30, 2026 16:22
@bnicholson2050 bnicholson2050 marked this pull request as draft April 30, 2026 16:22
@JPKribs

JPKribs commented Apr 30, 2026

Copy link
Copy Markdown
Member

This is already being worked on as part of #1752. That is why that PR was linked to the issues: #1808 & #1809.

@JPKribs JPKribs closed this Apr 30, 2026
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.

2 participants