Forums
Learn
Careers
Store
About
SUBSCRIBE
NEW: My new book Pro SwiftUI is out now – level up your SwiftUI skills today! >>
Question 1/12: This code is valid Swift – true or false?
Hint: Closures don't use parameter labels. Click to show.
func fadeOut(completion: () -> Void) { print("Making the screen dim...") completion() }
Correct! This code is valid Swift.
Oops – that's not correct. This code is valid Swift.
Return to Review Menu
You are not logged in
Link copied to your pasteboard.