diff --git a/docs/_docs/uicollectionviewinterop.md b/docs/_docs/uicollectionviewinterop.md
index a918a0cf8..d1f9fb668 100755
--- a/docs/_docs/uicollectionviewinterop.md
+++ b/docs/_docs/uicollectionviewinterop.md
@@ -71,7 +71,14 @@ For this example, the data source method `collectionNode:nodeBlockForItemAtIndex
- // Click the "Edit on GitHub" button at the bottom of this
+ // Setting the return type to implicitly unwrapped optional
+ // helps overcome compiler error when trying to return nil
+ func collectionNode(_ collectionNode: ASCollectionNode,
+ nodeBlockForItemAt indexPath: IndexPath) -> ASCellNodeBlock! {
+ return optionalNode
+ }
+
+ // Click the "Edit on GitHub" button at the bottom of this
// page to contribute the swift code for this section. Thanks!