Skip to content

Commit

Permalink
Update podspec
Browse files Browse the repository at this point in the history
  • Loading branch information
dinhquan committed Aug 13, 2020
1 parent 8cc80b0 commit d64d6e4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
3 changes: 2 additions & 1 deletion SwiftAlertView.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Pod::Spec.new do |s|
s.platform = :ios
s.source = { :git => "https://github.com/dinhquan/SwiftAlertView.git", :tag => "1.3.0" }
s.source_files = 'SwiftAlertView', 'SwiftAlertView/**/*.swift'
s.ios.deployment_target = "8.0"
s.ios.deployment_target = "10.0"
s.swift_version = "5.0"

end
10 changes: 3 additions & 7 deletions SwiftAlertView/SwiftAlertView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,8 @@ public class SwiftAlertView: UIView {
dimView!.addGestureRecognizer(recognizer)
}

if delegate?.responds(to: #selector(SwiftAlertViewDelegate.willPresentAlertView(_:))) == true {
delegate?.willPresentAlertView?(self)
}

delegate?.willPresentAlertView?(self)

view.addSubview(self)
view.bringSubviewToFront(self)

Expand Down Expand Up @@ -268,9 +266,7 @@ public class SwiftAlertView: UIView {
self.transform = CGAffineTransform.identity
self.alpha = 1
}) { (finished) -> Void in
if self.delegate?.responds(to: #selector(SwiftAlertViewDelegate.didPresentAlertView(_:))) == true {
self.delegate?.didPresentAlertView?(self)
}
self.delegate?.didPresentAlertView?(self)
}
break
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
};
name = Debug;
};
Expand Down Expand Up @@ -293,6 +294,7 @@
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_VERSION = 5.0;
VALIDATE_PRODUCT = YES;
};
name = Release;
Expand Down

0 comments on commit d64d6e4

Please sign in to comment.