Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion docs/_docs/uicollectionviewinterop.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,14 @@ For this example, the data source method `collectionNode:nodeBlockForItemAtIndex
</pre>

<pre lang="swift" class = "swiftCode hidden">
// 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!
Comment thread
bolsinga marked this conversation as resolved.
</pre>
</div>
Expand Down