In my Swift application, I have some UITableView's nested 3 levels deeps. The cells are self-sizing and the innermost cells (greatgrandchildren of the main UITableView, if you will) contain a vertical UIStackView with a label and a YTPlayerView object, both of which get populated at runtime. My team worked long and hard at perfecting this self-sizing nested table, and we're happy to say everything works fine except for the videos.
How can we ensure the YTPlayerView's update the same way the rest of the table does?
I figured out a solution, but I wish it were built-in. The secret for me is adding a 16:9 (standard YT video) aspect ratio constraint to each YTPlayer object.
In my Swift application, I have some
UITableView
's nested 3 levels deeps. The cells are self-sizing and the innermost cells (greatgrandchildren of the mainUITableView
, if you will) contain a verticalUIStackView
with a label and aYTPlayerView
object, both of which get populated at runtime. My team worked long and hard at perfecting this self-sizing nested table, and we're happy to say everything works fine except for the videos.How can we ensure the
YTPlayerView
's update the same way the rest of the table does?