//
//  LNIMChatEmojiAttachment.swift
//  Lanu
//
//  Created by OneeChan on 2025/12/18.
//

import Foundation


class LNIMChatEmojiAttachment: NSTextAttachment {
    var name: String = ""
    var font: UIFont?
    override func attachmentBounds(for attributes: [NSAttributedString.Key : Any], location: any NSTextLocation, textContainer: NSTextContainer?, proposedLineFragment: CGRect, position: CGPoint) -> CGRect {
        .init(
            x: 0,
            y: -0.4 * proposedLineFragment.size.height,
            width: (font?.pointSize ?? 14) * 1.5,
            height: (font?.pointSize ?? 14) * 1.5
        )
    }
}
