Apple Swift: A simple tips calculator