I need to lower the font measurement to small and set a selected Arabic font for the controller title.
Thanks prematurely.
Preview:
Screenshot
Code:
if let string = viewModel.base64String {
guard var doc = (FileManager.default.urls(for: .documentDirectory, in: .userDomainMask)).final, let convertedData = Information(base64Encoded: string) else{
print("one thing went incorrect")
return
}
doc.appendPathComponent("MonthlyStatement.pdf")
do {
attempt convertedData.write(to: doc)
}catch{
}
let controller = UIDocumentInteractionController(url: doc)
controller.delegate = self
controller.title = NSLocalizedString("Monthlystatement", remark: "")
controller.presentPreview(animated: true)
} else {
//print(viewModel.error)
//self.showAlertViewWithTitle(title:"", message: NSLocalizedString("File not discovered", remark: ""))
}
}
Thanks once more.