31/03/2022
An alert appears when the system or an app needs to warn the user about an error condition, or a potentially hazardous situation or consequence.
-----------------------
This information is coming from Apple’s Human Interface Guidelines. And I also find some useful tips on the page.
Provide a message that describes the situation clearly and succinctly. A message like “An error occurred” is mystifying and likely to annoy people. Be complete and specific, without being verbose. When possible, identify the error that occurred, the document or file it occurred in, and why it occurred.
Avoid sounding accusatory, judgmental, or insulting. People know that alerts notify them about problems and dangerous situations. As long as you use a friendly tone, it’s better to be negative and direct than positive and oblique. Avoid pronouns such as you, your, me, and my, which are sometimes interpreted as insulting or patronizing.
Avoid explaining alert buttons. If your alert text and button titles are clear, there should be no need to explain what the buttons do. In rare cases where you must provide guidance, preserve capitalization when referencing buttons, and don’t enclose button titles in quotes.
Give alert buttons succinct, logical titles. The best button titles consist of one or two words that describe the result of clicking the button. As with all button titles, use title-style capitalization and no ending punctuation. To the extent possible, use verbs and verb phrases that relate directly to the alert title and message—for example, View All, Reply, or Ignore. Use OK for simple acceptance. Avoid using Yes and No.
Ensure that the default button title reflects the action the button performs. Avoid using OK for the default button unless the alert is purely informational. The meaning of OK can be unclear even in alerts that ask if the user is sure they want to do something. For example, does OK mean “OK, I want to complete the action” or “OK, I now understand the negative results my action would have caused”? A specific button title like Erase, Convert, Clear, or Delete helps the user understand the action they’re taking.
Here is the link https://developer.apple.com/design/human-interface-guidelines/macos/windows-and-views/alerts/