more info about system dialogs
converted heading example to Swift