Skip to content

Feature: add option to hide AI Rewrite button - #186

Draft
mvsrcdst wants to merge 1 commit into
Swiftgram:masterfrom
mvsrcdst:feature/ai-rewrite
Draft

Feature: add option to hide AI Rewrite button#186
mvsrcdst wants to merge 1 commit into
Swiftgram:masterfrom
mvsrcdst:feature/ai-rewrite

Conversation

@mvsrcdst

@mvsrcdst mvsrcdst commented Jul 24, 2026

Copy link
Copy Markdown

Closes #173

Summary

  • New option toggle in Settings -> Other: disableAIChatButton (button shown by default)
  • Gates both the accessory-button width calc and the actual button add in ChatTextInputPanelNode behind !SGSimpleSettings.shared.disableAIChatButton
  • String: Settings.AIChatButton = "AI Rewrite Button"

Screenshots

Option toggle "AI Rewrite Button" in Settings -> Other image
Toggle on image
Toggle off image

Testing

  • Tested on iOS Simulator 18.6/26.5
  • Toggle off: AI Rewrite button disappears from chat input panel
  • Toggle on: button reappears, width calc still correct

@mvsrcdst
mvsrcdst marked this pull request as draft July 24, 2026 14:15
@mvsrcdst

Copy link
Copy Markdown
Author

Converted to draft: 12.9 will break the AI Rewrite button, will fix once released.

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.

How to disable AI editor suggestion?

1 participant