renebigot / XlsxReaderWriter

XlsxReaderWriter is an Objective-C library for iPhone / iPad and Mac. It parses and writes MS Excel XLSX files.
MIT License
437 stars 119 forks source link

setAttributedStringValue is not working with ".link" attribute #107

Open vimal-bhadra opened 4 years ago

vimal-bhadra commented 4 years ago

let documentPath:String = Bundle.main.path(forResource: "demo1", ofType: "xlsx")! let spreadsheet: BRAOfficeDocumentPackage = BRAOfficeDocumentPackage.open(documentPath) let fooWorkSheet: BRAWorksheet = spreadsheet.workbook.worksheets[0] as! BRAWorksheet

It is working fine with below : let title = NSMutableAttributedString(string: "title", attributes: [ .font: FONT_BOLD(30), .foregroundColor: UIColor.red ]) fooWorkSheet.cell(forCellReference: "Title", shouldCreate: true)?.setAttributedStringValue(title)

But It is not working with below : let title = NSMutableAttributedString(string: "title", attributes: [ .link: "http://www.google.com" ]) fooWorkSheet.cell(forCellReference: "Title", shouldCreate: true)?.setAttributedStringValue(title)

Can you please help me ?