Skip to content

SerenadeX/SwiftNotesAndSnippets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SwiftNotesAndSnippets

Closures as function Parameters

If I want to do a Swift closure in a function declaration:

func theFunction(aParam: String, aCallback: ((String, Int) -> Void)) {
  aCallback("Some String", 147)
}

About

Notes and Snippets about Swift

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages