expanding image options
This commit is contained in:
parent
7a8a28a121
commit
f37a839b95
@ -685,7 +685,7 @@ public typealias ActionBlock = () -> ()
|
|||||||
static func getTextAttachmentImage(name: String = "externalLink", dimension: CGFloat) -> NSTextAttachment {
|
static func getTextAttachmentImage(name: String = "externalLink", dimension: CGFloat) -> NSTextAttachment {
|
||||||
|
|
||||||
let imageAttachment = NSTextAttachment()
|
let imageAttachment = NSTextAttachment()
|
||||||
imageAttachment.image = MVMCoreUIUtility.imageNamed(name)
|
imageAttachment.image = MVMCoreCache.shared()?.getImageFromRegisteredBundles(name)
|
||||||
imageAttachment.bounds = CGRect(x: 0, y: 0, width: dimension, height: dimension)
|
imageAttachment.bounds = CGRect(x: 0, y: 0, width: dimension, height: dimension)
|
||||||
|
|
||||||
return imageAttachment
|
return imageAttachment
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user