Skip to content

Releases: HeathWang/HWPanModal

Add new api for drag Velocity to dismiss

09 Jun 06:04
Compare
Choose a tag to compare
0.8.4

add `- (CGFloat)minVerticalVelocityToTriggerDismiss;` api

Release 0.8.3

30 Mar 09:18
Compare
Choose a tag to compare
add api for state did change delegate

Add new delegate for presentation progress

29 Mar 11:16
Compare
Choose a tag to compare

new api:

/**
 * PresentationState did change callback
 */
- (void)didChangeTransitionToState:(PresentationState)state;

#pragma mark - present delegate

/**
 * call when present transition will begin.
 */
- (void)panModalTransitionWillBegin;

/**
 * call when present transition did finish.
 */
- (void)panModalTransitionDidFinish;

/**
 * call when your custom presented vc has been added to the presentation container.
 */
- (void)presentedViewDidMoveToSuperView;

New API - (BOOL)shouldEnableAppearanceTransition

24 Dec 08:59
Compare
Choose a tag to compare

Add a new api - (BOOL)shouldEnableAppearanceTransition.
Default is YES.
When you set it as NO, will NOT invoke viewWillAppear:, viewWillDisappear:

Now you can update background view any time

20 Oct 12:24
Compare
Choose a tag to compare

Now you can update background view any time.

there is a prop:@property (nonatomic, readonly) HWDimmedView *hw_dimmedView;
use it to update your background.

0.7.9

24 Aug 06:04
Compare
Choose a tag to compare

bug fix.

Add Medium form

04 Aug 09:14
Compare
Choose a tag to compare
  • Fix animation crash.
  • Add Medium form height, default is longFormHeight. If have any bug, please report it. thanks.

Remove UINavigationController method Swizzle

04 Jun 12:24
Compare
Choose a tag to compare

For safety reason, I have removed UINavigationController method Swizzle.
If you want update PanModal after push/pop, you should overridden below method:


pragma mark - overridden to update panModal

- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated {
    [super pushViewController:viewController animated:animated];
    [self hw_panModalSetNeedsLayoutUpdate];
}

- (UIViewController *)popViewControllerAnimated:(BOOL)animated {
    UIViewController *controller = [super popViewControllerAnimated:animated];
    [self hw_panModalSetNeedsLayoutUpdate];
    return controller;
}

- (NSArray<__kindof UIViewController *> *)popToViewController:(UIViewController *)viewController animated:(BOOL)animated {
    NSArray<__kindof UIViewController *> *viewControllers = [super popToViewController:viewController animated:animated];
    [self hw_panModalSetNeedsLayoutUpdate];
    return viewControllers;
}

- (NSArray<__kindof UIViewController *> *)popToRootViewControllerAnimated:(BOOL)animated {
    NSArray<__kindof UIViewController *> *viewControllers = [super popToRootViewControllerAnimated:animated];
    [self hw_panModalSetNeedsLayoutUpdate];
    return viewControllers;
}

fix naming blur effect

25 May 07:16
Compare
Choose a tag to compare

fix naming blur effect

Bug fix

21 May 11:23
Compare
Choose a tag to compare
0.7.4

add demo for nested scroll