As the picture says: the image attachment is being placed too tightly to the text content in iOS18 , but in iOS17 ,everything is fine .
I have debug the code ,found that DTHTMLElement::attributedString
will call the appendString in NSMutableAttributedString (HTML)
But this call to appendString seems not call the method in the NSMutableAttributedString (HTML) in iOS18 , maybe the system provide this function it self?
And because of this method chaos , the paragraph spacing attribute is missing in iOS18 and cause the problem
As the picture says: the image attachment is being placed too tightly to the text content in iOS18 , but in iOS17 ,everything is fine .
I have debug the code ,found that DTHTMLElement::attributedString will call the appendString in NSMutableAttributedString (HTML)
But this call to appendString seems not call the method in the NSMutableAttributedString (HTML) in iOS18 , maybe the system provide this function it self?
And because of this method chaos , the paragraph spacing attribute is missing in iOS18 and cause the problem