I am using largeTitles and a searchController. when I animate a push transition, the searchBar sometimes does not animate it's disappearance. The space for the searchBar suddenly disappears after the push causing a rough transition animation.
我正在使用largeTitles和searchController。当我为推送过渡设置动画时,searchBar有时不会为它的消失设置动画。在推动导致粗略过渡动画之后,searchBar的空间突然消失。
I thought the solution was to set the searchController.definesPresentationContext = true
but that is not working. Wondering if there is another fix for this.
我认为解决方案是设置searchController.definesPresentationContext = true,但这不起作用。想知道是否还有其他修复方法。
1 个解决方案
#1
0
You need to change you code to definesPresentationContext = true
您需要将代码更改为definesPresentationContext = true
#1
0
You need to change you code to definesPresentationContext = true
您需要将代码更改为definesPresentationContext = true