Skip to content

Commit

Permalink
1.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
lixiang1994 committed Oct 27, 2022
1 parent 5aba309 commit a3fec28
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 13 deletions.
2 changes: 1 addition & 1 deletion LEEAlert.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "LEEAlert"
s.version = "1.6.1"
s.version = "1.6.2"
s.summary = "优雅的Alert ActionSheet"

s.homepage = "https://github.com/lixiang1994/LEEAlert"
Expand Down
2 changes: 1 addition & 1 deletion LEEAlert/LEEAlert.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*
* @author LEE
* @copyright Copyright © 2016 - 2020年 lee. All rights reserved.
* @version V1.6.1
* @version V1.6.2
*/

#import <Foundation/Foundation.h>
Expand Down
38 changes: 28 additions & 10 deletions LEEAlert/LEEAlert.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*
* @author LEE
* @copyright Copyright © 2016 - 2020年 lee. All rights reserved.
* @version V1.6.1
* @version V1.6.2
*/

#import "LEEAlert.h"
Expand Down Expand Up @@ -2820,12 +2820,17 @@ - (void)buttonAction:(LEEActionButton *)sender{

if (isClose) {

if (self.config.modelShouldActionClickClose && !self.config.modelShouldActionClickClose(index)) return;

[self closeAnimationsWithCompletionBlock:^{
if (self.config.modelShouldActionClickClose && self.config.modelShouldActionClickClose(index)) {

[self closeAnimationsWithCompletionBlock:^{

if (clickBlock) clickBlock();
}];

} else {

if (clickBlock) clickBlock();
}];
}

} else {

Expand Down Expand Up @@ -3701,12 +3706,17 @@ - (void)buttonAction:(LEEActionButton *)sender{

if (isClose) {

if (self.config.modelShouldActionClickClose && !self.config.modelShouldActionClickClose(index)) return;

[self closeAnimationsWithCompletionBlock:^{
if (self.config.modelShouldActionClickClose && self.config.modelShouldActionClickClose(index)) {

[self closeAnimationsWithCompletionBlock:^{

if (clickBlock) clickBlock();
}];

} else {

if (clickBlock) clickBlock();
}];
}

} else {

Expand Down Expand Up @@ -4080,6 +4090,10 @@ - (void)show{
if (@available(iOS 13.0, *)) {
[LEEAlert shareManager].leeWindow.overrideUserInterfaceStyle = self.config.modelUserInterfaceStyle;

}

if (@available(iOS 16.0, *)) {

} else {
[[LEEAlert shareManager].leeWindow makeKeyAndVisible];
}
Expand Down Expand Up @@ -4148,7 +4162,11 @@ - (void)close{

[LEEAlert shareManager].leeWindow.hidden = YES;

[[LEEAlert shareManager].leeWindow resignKeyWindow];
if (@available(iOS 16.0, *)) {

} else {
[[LEEAlert shareManager].leeWindow resignKeyWindow];
}

[LEEAlert shareManager].leeWindow.rootViewController = nil;
}
Expand Down
2 changes: 1 addition & 1 deletion LEEAlert/LEEAlertHelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*
* @author LEE
* @copyright Copyright © 2016 - 2020年 lee. All rights reserved.
* @version V1.6.1
* @version V1.6.2
*/

#ifndef LEEAlertHelper_h
Expand Down
4 changes: 4 additions & 0 deletions UPDATELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@

# LEEAlert - 更新日志

V1.6.2
==============
`leeShouldActionClickClose` 返回False时 Action的点击事件回调也会被调用

V1.6.1
==============
尝试解决iOS16 Window旋转问题
Expand Down

0 comments on commit a3fec28

Please sign in to comment.