Skip to content

feat: transparent background and hidden send button#11

Open
clancywist wants to merge 1 commit into
launchtodayhq:mainfrom
clancywist:feat/transparent-bg-hidden-button
Open

feat: transparent background and hidden send button#11
clancywist wants to merge 1 commit into
launchtodayhq:mainfrom
clancywist:feat/transparent-bg-hidden-button

Conversation

@clancywist

Copy link
Copy Markdown

Summary

Resolves #10.

  • Transparent background: containerView.backgroundColor is now .clear instead of a hardcoded grey, letting consumers control the background via their own wrapper or styles.
  • No more trait override: Removed the containerView.backgroundColor = composerBackgroundColor() line from traitCollectionDidChange so consumer-provided backgrounds survive dark/light mode switches.
  • Hidden send button: When sendButtonEnabled={false}, the send button is now fully hidden (isHidden = true) instead of just dimmed (alpha 0.4).
  • Reclaimed padding: Reduced textContainerInset.right from 56 to 12 so the text input uses the full width when the send button is not present.

Changed file

ios/KeyboardComposerView.swift — 4 targeted changes, no new files or APIs.

Test plan

  • Render <ChatComposer sendButtonEnabled={false} /> and verify the send button is completely invisible with no reserved space on the right
  • Render <ChatComposer /> (default) and verify the send button appears and functions normally
  • Verify the composer background is transparent (parent view background shows through)
  • Toggle device between light and dark mode and confirm the background stays transparent (no grey flash)

- Set containerView.backgroundColor to .clear instead of hardcoded grey
- Remove background color reset in traitCollectionDidChange so consumer
  styles are not overridden on trait changes
- Hide send button completely (isHidden) when sendButtonEnabled is false
  instead of only dimming it
- Reduce textContainerInset.right from 56 to 12 so the text input
  reclaims space when the send button is not present

Closes launchtodayhq#10
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.

feat: support transparent background and hidden send button

1 participant