So, I read this stack discussion on the same topic but I didn't really find a solution for what I'm trying to do (or none of the solutions worked for me). I've embedded a collection view inside of a table view and set the labels and such accordingly (with correct values, as I've tested by printing labels.text in the console). However, it appears the collection view is automatically sizing my cells to 50 x 50 (defaults), hiding the labels (see image).
I have automatic sizing off, estimate size set to none, and to the best of my knowledge the constraints in the collection view cell do indeed define its size. I tried setting all the heights and widths manually, which appears to do nothing (though it does work for tableview.rowHeight, which for now I've set back to auto sizing as the cell remained 50x50 inside the 325px height row). Any advice is appreciated!
IMG: what the UI is supposed to look like
IMG: collection view cell constraints
IMG: collection view attributes
IMG: collection view attributes 2
I've done my best to include all pertinent information. Please let me know if more is needed.
There are a handful of solutions to this problem. For me, it was setting the cell size in the attributes editor for the collection view (and in the attributes editor for the collection view cell), while leaving everything with the table view on automatic. The only unfortunate consequence is that the table view row height automatically sizes to the collection view height that you manually set with constraints in interface builder (without said constraint, the table view has no height to go off of). This isn't a problem for me, but it depends on the project.