HYPSnapshotInteractionView

@interface HYPSnapshotInteractionView

This is a base implementation of a Snapshot plugins view that gets added to the HYPSnapshotContainer once active.

  • Creates a new HYPSnapshotInteractionView with the provided extension.

    Declaration

    Objective-C

    - (instancetype _Nonnull)initWithExtension:
        (id<HYPPluginExtension> _Nullable)extension;

    Parameters

    extension

    The extension the HYPSnapshotInteractionView should be created with.

  • Called when the interaction view is about to change size.

    Declaration

    Objective-C

    - (void)interactionViewWillTransitionToSize:(CGSize)size
                      withTransitionCoordinator:(id _Nullable)coordinator;

    Swift

    func interactionViewWillTransition(toSize size: Any!, withTransitionCoordinator coordinator: Any?)

    Parameters

    size

    The size that the interaction view is about to change to.

    coordinator

    The transition coordinator allows you to animate views in sync with the size change.

  • Called when the interaction view has changed size.

    Declaration

    Objective-C

    - (void)interactionViewDidTransitionToSize:(CGSize)size;

    Swift

    func interactionViewDidTransition(toSize size: Any!)

    Parameters

    size

    The size that the interaction view has changed to.

  • The extension that the HYPSnapshotInteractionView was intialized with.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable) id<HYPPluginExtension> extension;