Adding a function into your app

Anywhere in the ViewController.swift class:

func NameOfFunction(String: nameOfParameter) -> String
{
 return nameOfReturnVariable
}

Comments

Popular posts from this blog

Swift Basics - Sets

Swift basics - functions

Rotation