How do customize actionsheet default when click button upload file on webview in ios app with swift?

How do customize actionsheet default when click button upload file on webview in ios app with swift?

Here the action sheet variable is the actionsheet in question. You can give it a title and a message. You then have to create a variable for each action that you want with the UIAlertAction initializer, in there handlers, you can add what each action should do.
You then need to assign the actions to the Action Sheet that you created. Finally, you should present the action sheet from the view controller that is in charge of presenting it.
The following does what I'm trying to explain.
let actionSheet = UIAlertController(title: "My Action Sheet", message: "My Action Sheet Message", preferredStyle: .actionSheet)
let action1 = UIAlertAction(title: "Action 1", style: .default) { (action) in
//Perform any actions specific to action 1 in your class
}
let action2 = UIAlertAction(title: "Action 2", style: .default) { (action) in
//Perform any actions specific to action 2 in your class
}
let cancelAction = UIAlertAction(title: "Cancel", style: .cancel, handler: nil) //Will just dismiss the action sheet
actionSheet.addAction(action1)
actionSheet.addAction(action2)
actionSheet.addAction(cancelAction)
present(actionSheet, animated: true, completion: nil)