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: Arrays

Swift 4 basics - protocols

Swift Basics - Tuples