Updated to the latest Swift syntax.