Skip to content

Add dynamic type / accessibility size adjustments across widgets and views#35

Open
holgerkrupp wants to merge 1 commit into
codex/database-splitfrom
codex/review-code-for-accessibility-optimizations
Open

Add dynamic type / accessibility size adjustments across widgets and views#35
holgerkrupp wants to merge 1 commit into
codex/database-splitfrom
codex/review-code-for-accessibility-optimizations

Conversation

@holgerkrupp

Copy link
Copy Markdown
Owner

Motivation

  • Improve layout and readability when users enable larger accessibility text by honoring dynamic type sizes across multiple UI components.

Description

  • Added @Environment(\.dynamicTypeSize) to widgets and several views and conditionally adjust behavior based on dynamicTypeSize.isAccessibilitySize (e.g. PlayNextQueueWidget, EpisodeRowView, PodcastRowView, BookmarkRowView, PodcastBrowseEpisodeRowView, watch views, etc.).
  • Adapted row counts, header heights, and sizing in the play-next widget by changing listView(rowCount:) and headerHeight when in accessibility sizes.
  • Replaced many fixed lineLimit calls with conditional limits and applied .fixedSize(horizontal: false, vertical: dynamicTypeSize.isAccessibilitySize) to allow multi-line expansion in accessibility sizes.
  • Increased sizes and spacing for controls and buttons when accessibility sizes are active (for example in WatchPlayerView's control buttons and WatchCapsuleButtonStyle).

Testing

  • Ran the project's unit test suite; all unit tests completed successfully.
  • Verified SwiftUI previews and automated view snapshot checks (where available) to ensure layouts adapt for large accessibility sizes; previews rendered without errors.

Codex Task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant