 
         var padding = (textContainer?.lineFragmentPadding ?? 0) * 2
         if let storage = textContainer?.layoutManager?.textStorage,
-            let paragraphStyle = storage.attribute(.paragraphStyle, at: charIndex, effectiveRange: nil) as? NSParagraphStyle {
+            let paragraphStyle = storage.attribute(.paragraphStyle, at: charIndex, effectiveRange: nil) as? NSParagraphStyle
+        {
             let attachmentString = storage.attributedSubstring(from: NSMakeRange(charIndex, 1)).string
             let headIndent = storage.string.isStartOfParagraph(at: attachmentString.startIndex) ? paragraphStyle.firstLineHeadIndent : paragraphStyle.headIndent
 

        let textRect = message.boundingRect(with: bounds.size, options: [.usesLineFragmentOrigin, .usesFontLeading], context: nil)
        var messageY = bounds.minY + (bounds.height - textRect.height) * 0.5

        if overlaySize.height != 0 {
            messageY = bounds.minY + Constants.messageTextTopMargin + (bounds.height + overlaySize.height) * 0.5
        }

        // Check to see if the message will fit within the image. If not, skip it.

    }


    /// Draws the overlayImage at the precise center of the Attachment's bounds.
    ///
    /// - Returns: The actual size of the overlayImage, once displayed onscreen. This size might be actually smaller than the one defined
    ///   by the actual asset, since we make sure not to render images bigger than the canvas.
    ///
    private func drawOverlayImage(in bounds: CGRect) -> CGSize {
        guard let overlayImage = overlayImage else {
