Skip to content

The cancel button is not Localized in HPPViewController #37

@urmilsetia-league

Description

@urmilsetia-league

The cancel button is not Localized in HPPViewController.

/// The Web View Controller which encapsulates the management of the webivew and the interaction with the HPP web page.
class HPPViewController: UIViewController, WKNavigationDelegate,  WKUIDelegate, WKScriptMessageHandler {
    
    var webView: WKWebView?
    var delegate: HPPViewControllerDelegate?
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        initialiseWebView()
        
        let cancelButton = UIBarButtonItem(
            title: "Cancel",
            style: UIBarButtonItem.Style.plain,
            target: self,
            action: #selector(HPPViewController.closeView)
        )
        navigationItem.leftBarButtonItem = cancelButton
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions