Long-Term fix for MessageSizeCalculator.labelSize calculation when string is partially attributed
还没有人认领这个 Issue。
评估
调研方向
先从 MessageSizeCalculator.labelSize 和 MessageLabel 的 drawRect 重写开始,然后阅读关联的 issue #824 以及 StyledTextKit 的布局方案。确定文本存储、容器选项、framework 默认值和布局缓存应如何交互,同时避免将两个 MessageKit 组件紧密耦合。完成的标准是解决部分属性设置导致的尺寸计算问题,同时继续支持自定义文本容器选项。
由索引模型根据 Issue 内容生成。
描述
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
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
MessageKit/MessageKit 的其他 Issue
-
Keyboard bug 未关闭bug?
难度 3/5 1-2 天 新手友好度 45/100
MessageKit/MessageKit#1901 ·
-
question
难度 4/5 3-5 天 新手友好度 35/100
MessageKit/MessageKit#1888 · 2 条评论 ·
-
Transparent navigation bar in messageInputBar but messagesCollectionView is not shown in these areas 未关闭feature request
难度 3/5 1-2 天 新手友好度 35/100
MessageKit/MessageKit#1884 · 1 条评论 ·
-
feature request
难度 3/5 1-2 天 新手友好度 45/100
MessageKit/MessageKit#1880 ·
-
bug?
难度 4/5 3-5 天 新手友好度 35/100
MessageKit/MessageKit#1878 ·
查看 MessageKit/MessageKit 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
-
area:general bug P1 security
难度 2/5 1-3 小时 新手友好度 75/100
uttrflow/uttrflow-swift#1333 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 75/100
maxgoedjen/secretive#840 ·
-
难度 2/5 1-3 小时 新手友好度 88/100
manaflow-ai/cmux#13763 ·