Skip to content

Instantly share code, notes, and snippets.

@alexnikol

alexnikol/.swift

Created Apr 30, 2020
Embed
What would you like to do?
Nested Swift Function Example
func runReportFlow() {
func getWeekReportBody() {} //First Nested Function
func getMonthReportBody() {} //Second Nested Function
if isSomeConditionTrue {
getWeekReportBody()
} else {
getMonthReportBody()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.