Matti MK
03/05/2026, 1:10 PMListDetailSceneStrategy works great but doesn’t support vertically splitting the screen, thus doesn't fulfil scenario #2. I assume the right way would be to create a new strategy that handles both scenarios, but I would rather not re-create ListDetailSceneStrategy logic there. Any thoughts on this?Ian Lake
03/05/2026, 2:36 PMMatti MK
03/05/2026, 2:43 PMListDetailSceneStrategy, and I'd prefer not to rewrite/copy that logic.Ian Lake
03/05/2026, 2:50 PMMatti MK
03/05/2026, 2:57 PMif (shouldSplitVerticallyOnPortrait) VerticalSplitSceneStrategy else ListDetailSceneStrategy
But on another look at the docs I can see:
So, no need for analso provides a convenientSceneStrategyinfix function, allowing you to chain multiple strategies together. This creates a flexible decision-making pipeline where each strategy can attempt to calculate athen, and if it can't, it delegates to the next one in the chain.Scene
if, but instead handle the logic as mentioned in the above quoteIan Lake
03/05/2026, 5:42 PMcalculateScene could return if (inPortrait && isUserSplitScreenEnabled) VerticalSplitScene() else nullMatti MK
03/05/2026, 7:44 PM