optimize: follow/illust page animation
This commit is contained in:
		@@ -23,7 +23,11 @@ namespace Pixiview.iOS.Renderers
 | 
			
		||||
                //var mode = ForPage.GetLargeTitleDisplay(page);
 | 
			
		||||
                //NavigationItem.LargeTitleDisplayMode = UINavigationItemLargeTitleDisplayMode.Automatic;
 | 
			
		||||
 | 
			
		||||
                page.InitOrientation((Orientation)UIDevice.CurrentDevice.Orientation);
 | 
			
		||||
                //lastOrientation = UIDevice.CurrentDevice.Orientation;
 | 
			
		||||
                //var landscape =
 | 
			
		||||
                //    lastOrientation == UIDeviceOrientation.LandscapeLeft ||
 | 
			
		||||
                //    lastOrientation == UIDeviceOrientation.LandscapeRight;
 | 
			
		||||
                //page.OnOrientationChanged(landscape);
 | 
			
		||||
                page.OnLoad();
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
@@ -86,7 +90,10 @@ namespace Pixiview.iOS.Renderers
 | 
			
		||||
                if (Element is AdaptedPage page)
 | 
			
		||||
                {
 | 
			
		||||
                    AppShell.Current?.SetStatusBarHeight(UIApplication.SharedApplication.StatusBarFrame.Height);
 | 
			
		||||
                    page.OnOrientationChanged((Orientation)lastOrientation);
 | 
			
		||||
                    var landscape =
 | 
			
		||||
                        lastOrientation == UIDeviceOrientation.LandscapeLeft ||
 | 
			
		||||
                        lastOrientation == UIDeviceOrientation.LandscapeRight;
 | 
			
		||||
                    page.OnOrientationChanged(landscape);
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user