Skip to content

Code that sets the size, tintAdjustmentMode and userInteractionEnabled is ignored for non-animated transitions. #4

@skirsche

Description

@skirsche

If I uncheck the "Animates" checkbox for the segue with the identifier "details" the code in TLTransitionAnimator.m will be ignored and the small gray view will be displayed fullscreen instead.

This comment in UIViewControllerTransitioning.h appears to promise that the custom UIViewControllerAnimatedTransitioning will be used for non-animated transitions, too.

@protocol UIViewControllerContextTransitioning <NSObject>
...
// Most of the time this is YES. For custom transitions that use the new UIModalPresentationCustom
// presentation type we will invoke the animateTransition: even though the transition should not be
// animated. This allows the custom transition to add or remove subviews to the container view. 
- (BOOL)isAnimated;
...

Do you have an idea how to make it work for non-animated transitions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions