Hide sidebar completely for custom animation segues

オープン
#52 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
csharp
領域
mobile

調査の方向性

まず、issue に示されているとおりに、AnimatePushController、UINavigationController、BaseController、NavCon.View.Layer、PushViewController を使ってトランジションを再現します。カスタムナビゲーションアニメーション中にサイドバーがどのように表示されるかを追跡し、既存の表示制御を特定します。トランジション中にサイドバーが完全に非表示になり、一瞬も見えなくなれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Hi Jack,

I have your menu throughout my app, on some pages I have to use PushViewController to display a new UIViewController for one reason or another, my issue is that when I do anything but the standard animation I see the menu in the animation, just a glimpse of it, but it makes the transition look bad. My code is below, this should help you re-create the issue.

`static public void AnimatePushController(UINavigationController NavCon, BaseController DestinationViewController)
{
CATransition transition = new CATransition()
{
Duration = 0.35,
TimingFunction = CAMediaTimingFunction.FromName(CAMediaTimingFunction.EaseOut),
Type = CAAnimation.TransitionPush,
Subtype = CAAnimation.TransitionFromRight
};

        NavCon.View.Layer.AddAnimation(transition, CALayer.Transition);
        NavCon.PushViewController(DestinationViewController, false);
    }`

I tried setting the menu width to 0 or disabling it before the transition, what we really need is a hide or hidden state if possible.

I know I keep saying it, but great control!

Many thanks,

Conrad

主要言語
C#
スター
113
フォーク
67
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Baseflow/Xamarin-Sidebar のほかの issue

Baseflow/Xamarin-Sidebar の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。