Xcode 11 911 call code

I would like to have one button to automatically dial 911 when pressed. I cannot find the correct code for Xcode 11 using Swift. I do not want the user to have to input the numbers but they are automatically programmed in so it is a one touch operation.

I am also searching for the code to have one button automatically send a predetermined text message to individuals the user preselects. Does anyone have a code for that?

Thanks in advance. This is my first app and I have come to a sticking point in trying all the suggestions online.