Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

Swift Function With inout Parameters

func changeName(name: String) {
  if name == ""{
    // Cause Error
    name = "Ross"
  }
}
 
PREVIOUS NEXT
Tagged: #Swift #Function #With #inout #Parameters
ADD COMMENT
Topic
Name
7+7 =