badoo / badoo/Chatto

ChatInputBar won't appeal to constraints

Open
#464 2 comments 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 just want to use the ChatInputBar, but I can't get it to stick properly to the bottom of the screen.

Here's what I do:
```
chatInputView = ChatInputBar.loadNib()
var appearance = ChatInputBarAppearance()
appearance.sendButtonAppearance.title = NSLocalizedString("Send", comment: "")
appearance.textInputAppearance.placeholderText = NSLocalizedString("Type a message", comment: "")
chatInputPresenter = BasicChatInputBarPresenter(chatInputBar: chatInputView, chatInputItems: self.createChatInputItems(), chatInputBarAppearance: appearance)
chatInputView.maxCharactersCount = 280
self.view.addSubview(chatInputView)
```

I tried adding my own constraints, but that just breaks things.

Contributor guide

Open the contributing guide

Research direction

Start with the ChatInputBar.loadNib and BasicChatInputBarPresenter setup shown in the report, then inspect how the loaded view participates in Auto Layout. Reproduce the reported setup and verify that the ChatInputBar remains anchored to the bottom of the screen without breaking constraints.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.