# Swift Closures and Firebase - Handling Asynchronous Data

DevFeed: [Swift Closures and Firebase - Handling Asynchronous Data](<https://devfeed.tech/articles/swift-closures-and-firebase-handling-asynchronous-data-16275.md>)

Original publisher: [Read original article](<https://firebase.blog/posts/2018/07/swift-closures-and-firebase-handling>)

Author: Jen Person

Published: 2018-07-02T00:00:00Z

Content type: tutorial

Language: en

Sources: [Firebase Blog](<https://devfeed.tech/sources/firebase-blog.md>)

Topics: [Swift](<https://devfeed.tech/topics/swift.md>), [Firebase](<https://devfeed.tech/topics/firebase.md>), [Firestore](<https://devfeed.tech/topics/firestore.md>), [Programming](<https://devfeed.tech/topics/programming.md>)

Tags: [async](<https://devfeed.tech/tags/async.md>), [asynchronous](<https://devfeed.tech/tags/asynchronous.md>), [firebase](<https://devfeed.tech/tags/firebase.md>), [firestore](<https://devfeed.tech/tags/firestore.md>), [ios](<https://devfeed.tech/tags/ios.md>), [swift](<https://devfeed.tech/tags/swift.md>), [tutorials](<https://devfeed.tech/tags/tutorials.md>)

## AI overview

A tutorial on handling asynchronous Firebase data in Swift using closures and completion handlers. It explains why code after an asynchronous call can run before the data is available, demonstrates moving UI updates into the closure, and introduces separating this logic from view controllers.

## Source excerpt

News, tutorials, and updates from the Firebase team.