@@ -382,18 +382,12 @@ - (void)viewDidLoad
382
382
[self startObservingQuickStart ];
383
383
[self addMeButtonToNavigationBarWithEmail: self .blog.account.email meScenePresenter: self .meScenePresenter];
384
384
385
- if ([Feature enabled: FeatureFlagMySiteDashboard]) {
386
- MySiteViewController *parentVC = (MySiteViewController *)self.parentViewController ;
387
-
388
- [self .createButtonCoordinator addTo: parentVC.view
389
- trailingAnchor: parentVC.view.safeAreaLayoutGuide.trailingAnchor
390
- bottomAnchor: parentVC.view.safeAreaLayoutGuide.bottomAnchor];
391
- } else {
392
- [self .createButtonCoordinator addTo: self .view
393
- trailingAnchor: self .view.safeAreaLayoutGuide.trailingAnchor
394
- bottomAnchor: self .view.safeAreaLayoutGuide.bottomAnchor];
395
- }
385
+ MySiteViewController *parentVC = (MySiteViewController *)self.parentViewController ;
396
386
387
+ [self .createButtonCoordinator addTo: parentVC.view
388
+ trailingAnchor: parentVC.view.safeAreaLayoutGuide.trailingAnchor
389
+ bottomAnchor: parentVC.view.safeAreaLayoutGuide.bottomAnchor];
390
+
397
391
}
398
392
399
393
// / Resizes the `tableHeaderView` as necessary whenever its size changes.
@@ -419,25 +413,13 @@ - (void)viewDidLayoutSubviews {
419
413
- (void )viewWillAppear : (BOOL )animated
420
414
{
421
415
[super viewWillAppear: animated];
416
+
417
+ MySiteViewController *parentVC = (MySiteViewController *)self.parentViewController ;
422
418
423
419
if ([[QuickStartTourGuide shared ] currentElementInt ] != NSNotFound ) {
424
-
425
- if ([Feature enabled: FeatureFlagMySiteDashboard]) {
426
- MySiteViewController *parentVC = (MySiteViewController *)self.parentViewController ;
427
- parentVC.additionalSafeAreaInsets = UIEdgeInsetsMake (0 , 0 , [BlogDetailsViewController bottomPaddingForQuickStartNotices ], 0 );
428
- } else {
429
- self.additionalSafeAreaInsets = UIEdgeInsetsMake (0 , 0 , [BlogDetailsViewController bottomPaddingForQuickStartNotices ], 0 );
430
- }
431
-
420
+ parentVC.additionalSafeAreaInsets = UIEdgeInsetsMake (0 , 0 , [BlogDetailsViewController bottomPaddingForQuickStartNotices ], 0 );
432
421
} else {
433
-
434
- if ([Feature enabled: FeatureFlagMySiteDashboard]) {
435
- MySiteViewController *parentVC = (MySiteViewController *)self.parentViewController ;
436
- parentVC.additionalSafeAreaInsets = UIEdgeInsetsZero;
437
- } else {
438
- self.additionalSafeAreaInsets = UIEdgeInsetsZero;
439
- }
440
-
422
+ parentVC.additionalSafeAreaInsets = UIEdgeInsetsZero;
441
423
}
442
424
443
425
if (self.splitViewControllerIsHorizontallyCompact ) {
@@ -1717,18 +1699,10 @@ - (void)scrollToElement:(QuickStartTourElement) element
1717
1699
rowCount = 0 ;
1718
1700
for (BlogDetailsRow *row in section.rows ) {
1719
1701
if (row.quickStartIdentifier == element) {
1720
-
1721
1702
NSIndexPath *path = [NSIndexPath indexPathForRow: rowCount inSection: sectionCount];
1722
-
1723
- if ([Feature enabled: FeatureFlagMySiteDashboard]) {
1724
- parentVC.additionalSafeAreaInsets = UIEdgeInsetsMake (0 , 0 , [BlogDetailsViewController bottomPaddingForQuickStartNotices ], 0 );
1725
- UITableViewCell *cell = [self .tableView cellForRowAtIndexPath: path];
1726
- [parentVC.scrollView scrollToView: cell animated: true ];
1727
- } else {
1728
- self.additionalSafeAreaInsets = UIEdgeInsetsMake (0 , 0 , [BlogDetailsViewController bottomPaddingForQuickStartNotices ], 0 );
1729
- [self .tableView scrollToRowAtIndexPath: path atScrollPosition: UITableViewScrollPositionTop animated: true ];
1730
- }
1731
-
1703
+ parentVC.additionalSafeAreaInsets = UIEdgeInsetsMake (0 , 0 , [BlogDetailsViewController bottomPaddingForQuickStartNotices ], 0 );
1704
+ UITableViewCell *cell = [self .tableView cellForRowAtIndexPath: path];
1705
+ [parentVC.scrollView scrollToView: cell animated: true ];
1732
1706
}
1733
1707
rowCount++;
1734
1708
}
@@ -1948,12 +1922,8 @@ - (void)showViewSiteFromSource:(BlogDetailsNavigationSource)source
1948
1922
[[QuickStartTourGuide shared ] completeViewSiteTourForBlog: self .blog];
1949
1923
}
1950
1924
1951
- if ([Feature enabled: FeatureFlagMySiteDashboard]) {
1952
- MySiteViewController *parentVC = (MySiteViewController *)self.parentViewController ;
1953
- parentVC.additionalSafeAreaInsets = UIEdgeInsetsZero;
1954
- } else {
1955
- self.additionalSafeAreaInsets = UIEdgeInsetsZero;
1956
- }
1925
+ MySiteViewController *parentVC = (MySiteViewController *)self.parentViewController ;
1926
+ parentVC.additionalSafeAreaInsets = UIEdgeInsetsZero;
1957
1927
}
1958
1928
1959
1929
- (void )showViewAdmin
0 commit comments