mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-25 02:52:45 +02:00
Move size computations to PillAttachmentViewProvider
This commit is contained in:
@@ -74,7 +74,7 @@ class PillTextAttachment: NSTextAttachment {
|
||||
private extension PillTextAttachment {
|
||||
func updateBounds() {
|
||||
guard let data = data else { return }
|
||||
let pillSize = PillAttachmentView.size(forDisplayname: data.displayText)
|
||||
let pillSize = PillAttachmentViewProvider.size(forDisplayText: data.displayText)
|
||||
self.bounds = CGRect(origin: CGPoint(x: 0.0, y: Self.pillVerticalOffset), size: pillSize)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user