Skip to content

Commit

Permalink
Exclude the call that causes the crash from Mac (Designed for iPad) r…
Browse files Browse the repository at this point in the history
…untime
  • Loading branch information
mutaben committed Dec 12, 2024
1 parent 4b17792 commit 15a6f8e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Application/Sources/UI/Helpers/ModalTransition.m
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,11 @@ - (void)setupTransition:(id<UIViewControllerContextTransitioning>)transitionCont
]];

// Appearance events need to be notified manually for custom transitions, see https://stackoverflow.com/a/29041911/760435
[fromViewController beginAppearanceTransition:NO animated:transitionContext.animated];
[toViewController beginAppearanceTransition:YES animated:transitionContext.animated];

if ([[NSProcessInfo processInfo] isiOSAppOnMac] == false) {
[fromViewController beginAppearanceTransition:NO animated:transitionContext.animated];
[toViewController beginAppearanceTransition:YES animated:transitionContext.animated];
}

[self updateTransition:transitionContext withProgress:0.f];
}
Expand Down

0 comments on commit 15a6f8e

Please sign in to comment.