TOSplitViewController icon indicating copy to clipboard operation
TOSplitViewController copied to clipboard

Animating column reveal/hiding

Open zlsa opened this issue 6 years ago • 1 comments

There's no clean way to hide/show the primary column, so I've used the following hack:

to_svc.maximumNumberOfColumns = 3
to_svc.viewWillAppear(true)

However, this doesn't animate the column transition. What's the recommended way to achieve this?

zlsa avatar Apr 09 '19 00:04 zlsa

Um. This is similar to https://github.com/TimOliver/TOSplitViewController/issues/1.

I don't know how to go about dynamically hiding the primary view controller. My intention for this view controller was to only always show 3, and so I haven't given any thought on how to collapse a view controller in other situations.

I guess the only way I can recommend is to look at the logic that happens during screen rotations, so you can see how the collapsing logic works, and then see if you can adapt that into an external API.

I'll leave this open, in case anyone wants to try and add it as a PR.

TimOliver avatar Apr 09 '19 04:04 TimOliver