File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
WooCommerce/Classes/ViewRelated/Dashboard/Stats v4 Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -158,6 +158,8 @@ final class StoreStatsV4PeriodViewController: UIViewController {
158158
159159 override func viewWillAppear( _ animated: Bool ) {
160160 super. viewWillAppear ( animated)
161+
162+ // After returning to the My Store tab, `restartGhostAnimation` is required to resume ghost animation.
161163 restartGhostAnimationIfNeeded ( )
162164 }
163165
@@ -244,7 +246,7 @@ extension StoreStatsV4PeriodViewController {
244246 ///
245247 func displayGhostContent( ) {
246248 ensurePlaceholderIsVisible ( )
247- placeholderChartsView. startGhostAnimation ( style: . wooDefaultGhostStyle )
249+ placeholderChartsView. startGhostAnimation ( style: Constants . ghostStyle )
248250 }
249251
250252 /// Removes the Placeholder Content.
@@ -272,7 +274,7 @@ extension StoreStatsV4PeriodViewController {
272274 guard placeholderChartsView. superview != nil else {
273275 return
274276 }
275- placeholderChartsView. restartGhostAnimation ( style: . wooDefaultGhostStyle )
277+ placeholderChartsView. restartGhostAnimation ( style: Constants . ghostStyle )
276278 }
277279}
278280
@@ -753,5 +755,7 @@ private extension StoreStatsV4PeriodViewController {
753755
754756 static let containerBackgroundColor : UIColor = . systemBackground
755757 static let headerComponentBackgroundColor : UIColor = . clear
758+
759+ static let ghostStyle : GhostStyle = . wooDefaultGhostStyle
756760 }
757761}
You can’t perform that action at this time.
0 commit comments