Monday, January 8, 2024
HomeiOS Developmentios - I need to regulate the font measurement and set a...

ios – I need to regulate the font measurement and set a selected font for the controller title


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.



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments