Releases: HeathWang/HWPanModal
Releases · HeathWang/HWPanModal
Add new api for drag Velocity to dismiss
0.8.4 add `- (CGFloat)minVerticalVelocityToTriggerDismiss;` api
Release 0.8.3
add api for state did change delegate
Add new delegate for presentation progress
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
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
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
Add Medium form
- Fix animation crash.
- Add Medium form height, default is longFormHeight. If have any bug, please report it. thanks.
Remove UINavigationController method Swizzle
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
fix naming blur effect