Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Long-Term fix for MessageSizeCalculator.labelSize calculation when string is partially attributed

未关闭
#1,289 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
重构
描述清晰度
基本清楚
活跃度
停滞
技术栈
ios, swift
领域
mobile

调研方向

先从 MessageSizeCalculator.labelSize 和 MessageLabel 的 drawRect 重写开始,然后阅读关联的 issue #824 以及 StyledTextKit 的布局方案。确定文本存储、容器选项、framework 默认值和布局缓存应如何交互,同时避免将两个 MessageKit 组件紧密耦合。完成的标准是解决部分属性设置导致的尺寸计算问题,同时继续支持自定义文本容器选项。

由索引模型根据 Issue 内容生成。

描述

confirmed bug development enhancement priority: high

MessageKit: Target Version 3.3.0 or 4.0.0, depending on if breaking changes are required.

Refactor and use a text storage / container solution. The caveats are:
-- We need to allow the framework user to override the text container options with their own (such as might be the case if they are using a custom cell or if they have customized their text writing direction or paragraph style).
-- We need to match the framework cell options that come out of the box, without tightly coupling the MessageLabel and the MessageSizeCalculator.
-- Need to cache the layout calculation similar to how it was done in StyledTextKit
-- Need to look at MessageLabel drawRect override as well, also discussed on the linked issue.

Long-Term fix for #824

主要语言
Swift
星标
6.3k
派生
1.2k
平均合并
12 小时 4 分钟
30 天内合并 PR
9

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

MessageKit/MessageKit 的其他 Issue

查看 MessageKit/MessageKit 的全部 Issue

相似的 Issue

更多 Swift Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。