File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,8 @@ private async Task<View> Go(bool isHotReload = false)
149
149
var nextView = ( View ? ) _services . GetService ( targetType ) ??
150
150
throw new Exception ( $ "View { targetType . Name } not found") ;
151
151
152
- _ = nextView . FadeTo ( 1 ) ;
152
+ nextView . IsVisible = true ;
153
+ _ = nextView . FadeTo ( 1 , 500 ) ;
153
154
154
155
if ( _activeView is not null )
155
156
{
@@ -169,7 +170,7 @@ private async Task<View> Go(bool isHotReload = false)
169
170
}
170
171
}
171
172
172
- if ( ! isHotReload ) _ = ( _activeView ? . FadeTo ( 0 ) ) ;
173
+ if ( ! isHotReload ) _ = ( _activeView ? . FadeTo ( 0 , 500 ) ) ;
173
174
Current ? . View . ShowView ( nextView ) ;
174
175
175
176
if ( nextView is FluidView fluidView )
@@ -213,6 +214,7 @@ private async Task<View> Go(bool isHotReload = false)
213
214
}
214
215
215
216
_activeViewType = targetType ;
217
+ if ( _activeView is not null ) _activeView . IsVisible = false ;
216
218
_activeView = fluidView ;
217
219
}
218
220
You can’t perform that action at this time.
0 commit comments