cjwirth / RichEditorView

RichEditorView is a simple, modular, drop-in UIView subclass for Rich Text Editing.
BSD 3-Clause "New" or "Revised" License
1.9k stars 445 forks source link

Why image does not appear on custom toolbar item? #200

Open orkhanalizade opened 5 years ago

orkhanalizade commented 5 years ago

I'm trying to add my custom button to the toolbar with:

let pencilItem = RichEditorOptionItem(image: UIImage(named: "pencil"), title: "") { (toolbar) in }

but I do not see my button in the toolbar, although I can press on it, so assigning an image to the button does not work for me. Is that a known issue? When I add something without image in it:

let pencilItem = RichEditorOptionItem(image: nil, title: "Something") { (toolbar) in }

the button appears with the string in it