Repository navigation
Document how to change the alignment of the message labels - #1930
Merged
martinpucik merged 1 commit intoNov 8, 2026
Merged
Conversation
Add a FAQ entry that explains the message top and bottom labels span the cell, how to set their alignment for all messages through the MessagesCollectionViewFlowLayout setters, and how to set it per message through MessagesLayoutDelegate, with an example that lines the bottom label of incoming messages up with the right edge of the bubble (MessageKit#826). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kdtqz7yH52gZhqUYxRH3sH
Kaspik
approved these changes
Nov 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this implement/fix? Explain your changes.
Adds a FAQ entry, "How can I change the alignment of the message top and bottom labels?", which covers:
messageTopLabelandmessageBottomLabelspan the whole cell width, so their position comes from theNSTextAlignmentandtextInsetsof aLabelAlignment, and what the defaults areMessagesCollectionViewFlowLayoutsettersmessageTopLabelAlignment(for:at:in:)/messageBottomLabelAlignment(for:at:in:)ofMessagesLayoutDelegate, with an example that puts the bottom label of incoming messages under the right edge of the bubble. The insets are computed from the size calculator's avatar size, avatar padding, container padding and container size, using the same valueslayoutMessageContainerView(with:)uses.It also adds the entry to the FAQ index and a CHANGELOG line.
Does this close any currently open issues?
Addresses #826 (align the message bottom label to the right side of the bubble for incoming messages).
Any relevant logs, error output, etc?
None.
Any other comments?
This only changes documentation. The example's inset math assumes the avatar keeps its default
.cellLeadinghorizontal position for incoming messages, and the entry says so.Where has this been tested?
Devices/Simulators: Not run. This change is documentation only, and I checked the APIs it uses against the sources.
iOS Version: N/A
Swift Version: N/A
MessageKit Version: main
Generated by Claude Code