How to create a collection view where each cell opens a half modal view

I have a bunch of cells in a collection view and I need to have a modal pop up from the bottom. Each cell has data that needs to get passed on to the modal view. Its not built around the "struct" format so Im having a hard time finding how to do this programmatically.

Best to ask elsewhere since this isn't a Swift usage question, but, a question about Apple frameworks. Applies equally to Objective-C. Apple Developer forums, StackOverflow, other Internet sites