Skip to content

Commit

Permalink
4.0.7:解决多个弹窗同时存在时,最后一个弹窗可能无法外部点击的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
choiceyou committed May 31, 2019
1 parent f948ed4 commit 9579dd3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 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.0.6"
s.version = "4.0.7"
s.summary = "自定义弹窗"

# This description is used to generate tags and improve search results.
Expand Down
2 changes: 1 addition & 1 deletion FWPopupView/FWPopupView/FWPopupView/FWPopupView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -938,7 +938,7 @@ extension FWPopupView {
@objc open func resetSize(size: CGSize, isImmediateEffect: Bool) {

self.finalSize = size
if isImmediateEffect && self.currentPopupViewState == .didAppear {
if isImmediateEffect && (self.currentPopupViewState == .didAppear || self.currentPopupViewState == .didAppearAgain) {
self.hide { [weak self] (popupView) in
guard let strongSelf = self else {
return
Expand Down
2 changes: 1 addition & 1 deletion FWPopupView/FWPopupView/FWPopupView/FWPopupWindow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ extension FWPopupWindow {
for view in (self.attachView()?.fwMaskView.subviews)! {
if view.isKind(of: FWPopupView.self) && !self.hiddenViews.contains(view) {
let popupView = view as! FWPopupView
if popupView.currentPopupViewState == .didAppear {
if popupView.currentPopupViewState == .didAppear || popupView.currentPopupViewState == .didAppearAgain {
popupView.hide()
}
}
Expand Down

0 comments on commit 9579dd3

Please sign in to comment.