badoo / badoo/Chatto

How to change Send Button to Enabled in ChatInputBar?

Open
#561 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
4.6k
Forks
588
PR merge metrics
No merged PRs in 30d

Description

I have followed this example to create my customized xib
https://github.com/badoo/Chatto/issues/148

However the SendButton is still link to ChatInputBar, and in the class I noticed that to updateSendButton is actually fileprivate
`fileprivate func updateSendButton() {
self.sendButton.isEnabled = self.shouldEnableSendButton(self)
}`

How to I edit the sendButton to change to Enabled manually at my own viewController?

Contributor guide

Open the contributing guide

Research direction

Start with ChatInputBar and its fileprivate updateSendButton implementation, then compare the customized XIB from issue #148 with the view controller integration. Confirm the supported way to control the send button's enabled state and make the behavior clear for customized ChatInputBar views.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, swift
Domain
mobile
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.