@@ -48,11 +48,11 @@ class TextViewAttachmentDelegateProvider: NSObject, TextViewAttachmentDelegate {
4848 var placeholderImage : UIImage
4949 switch attachment {
5050 case _ as ImageAttachment :
51- placeholderImage = Gridicon . iconOfType ( . image, withSize : imageSize)
51+ placeholderImage = . gridicon ( . image, size : imageSize)
5252 case _ as VideoAttachment :
53- placeholderImage = Gridicon . iconOfType ( . video, withSize : imageSize)
53+ placeholderImage = . gridicon ( . video, size : imageSize)
5454 default :
55- placeholderImage = Gridicon . iconOfType ( . attachment, withSize : imageSize)
55+ placeholderImage = . gridicon ( . attachment, size : imageSize)
5656 }
5757 if #available( iOS 13 . 0 , * ) {
5858 placeholderImage = placeholderImage. withTintColor ( . label)
@@ -106,7 +106,7 @@ class TextViewAttachmentDelegateProvider: NSObject, TextViewAttachmentDelegate {
106106 let message = NSLocalizedString ( " Options " , comment: " Options to show when tapping on a media object on the post/page editor. " )
107107 attachment. message = NSAttributedString ( string: message, attributes: attachmentTextAttributes)
108108 }
109- attachment. overlayImage = Gridicon . iconOfType ( . pencil, withSize : CGSize ( width: 32.0 , height: 32.0 ) ) . withRenderingMode ( . alwaysTemplate)
109+ attachment. overlayImage = UIImage . gridicon ( . pencil, size : CGSize ( width: 32.0 , height: 32.0 ) ) . withRenderingMode ( . alwaysTemplate)
110110 textView. refresh ( attachment)
111111 currentSelectedAttachment = attachment
112112 }
0 commit comments