We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d31c03 commit 13a508bCopy full SHA for 13a508b
Sources/Views/InputTextView.swift
@@ -288,7 +288,7 @@ open class InputTextView: UITextView {
288
guard let cgImage = image.cgImage else { return NSTextAttachment() }
289
let scale = image.size.width / (frame.width - 2 * (textContainerInset.left + textContainerInset.right))
290
let textAttachment = NSTextAttachment()
291
- textAttachment.image = UIImage(cgImage: cgImage, scale: scale, orientation: .up)
+ textAttachment.image = UIImage(cgImage: cgImage, scale: scale, orientation: image.imageOrientation)
292
return textAttachment
293
}
294
0 commit comments