Ali Parr
Ali Parr

Reputation: 4787

iOS Menu title to navbar title animation

I am trying to achieve a menu translation effect similar to the gif below (from the excellent iOS Sky Guide app), where the large title of the previous menu animates up to become the navigation bar 'back' button.

I am wondering what is the cleanest way to implement such an effect in swift. I've looked through various libraries for anything similar but have drawn a blank.

Can someone put me on the right track? Thanks!

Menu transition

Upvotes: 0

Views: 118

Answers (1)

iCyberPaul
iCyberPaul

Reputation: 650

Have you tried the UINavigationBar.prefersLargeTitles property?

Reference: https://developer.apple.com/documentation/uikit/uinavigationbar/2908999-preferslargetitles

Upvotes: 1

Related Questions