Open JorgeAGomez opened 8 years ago
let typeDetails = NSMutableAttributedString()
let attachment = NSTextAttachment()
attachment.image = Img.checked
attachment.bounds = CGRect(x: 0, y: 0, width: 10, height: 10)
let attachmentStr = NSAttributedString(attachment: attachment)
typeDetails.append(attachmentStr)
pdf.addAttributedText(typeDetails)
that would be the way it is done. but for whatever reason images are not accepted in attributed string here. trying to find a solution for the exact issue myself
Is there a way of adding checkboxes?
Also can I add a string and an image besides the string?
Something like:
Do you want to participate? "Image or checkbox here"