Skip to content

Commit

Permalink
4.1.4:修复 还原keywindow时未判断原记录的window是否keywindow的问题;
Browse files Browse the repository at this point in the history
  • Loading branch information
choiceyou committed Mar 30, 2020
1 parent c865fd5 commit b2d0083
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion FWPopupView/FWPopupView.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Pod::Spec.new do |s|
#

s.name = "FWPopupView"
s.version = "4.1.3"
s.version = "4.1.4"
s.summary = "自定义弹窗"

# This description is used to generate tags and improve search results.
Expand Down
6 changes: 5 additions & 1 deletion FWPopupView/FWPopupView/FWPopupView/FWPopupView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,11 @@ extension FWPopupView {
if self.attachedView != nil && self.vProperty.maskViewColor != nil {
self.attachedView?.fwMaskViewColor = self.vProperty.maskViewColor!
}
self.originKeyWindow = UIApplication.shared.windows.first
for tmpWindow in UIApplication.shared.windows {
if tmpWindow.isKeyWindow {
self.originKeyWindow = tmpWindow
}
}
if self.vProperty.touchWildToHide != nil && !self.vProperty.touchWildToHide!.isEmpty && Int(self.vProperty.touchWildToHide!) == 1 {
FWPopupSWindow.sharedInstance.touchWildToHide = true
} else {
Expand Down

0 comments on commit b2d0083

Please sign in to comment.