Skip to content

Conversation

@SoundBlaster
Copy link
Owner

No description provided.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +18 to +23
public var body: some View {
Group {
if horizontalSizeClass == nil {
EmptyView()
} else if horizontalSizeClass == .regular {
regular()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Render regular content when size class is unavailable

SizeClassAdaptiveView returns EmptyView() when horizontalSizeClass is nil. On macOS the size class environment is always nil, so every usage of this component (e.g., wrapping the color list and inspector in the demo) will render nothing and the app shows a blank window. Since the package declares macOS 14 support, the mac build will be non-functional until one of the content closures is used instead. Consider defaulting to the regular layout when the size class is nil rather than suppressing all output.

Useful? React with 👍 / 👎.

@SoundBlaster SoundBlaster merged commit 94813a4 into main Nov 12, 2025
6 checks passed
@SoundBlaster SoundBlaster deleted the egor/spm branch November 12, 2025 17:12
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