Skip to content

Commit 75014f5

Browse files
committed
- weak self in DispatchQueue.main.asyncAfter
- version bump
1 parent b2fd856 commit 75014f5

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Library/PMAlertAction.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ import UIKit
4848

4949
@objc func tapped(_ sender: PMAlertAction) {
5050
//Action need to be fired after alert dismiss
51-
DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) {
52-
self.action?()
51+
DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) { [weak self] in
52+
self?.action?()
5353
}
5454
}
5555

PMAlertController.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "PMAlertController"
3-
s.version = "3.1.0"
3+
s.version = "3.2.0"
44
s.summary = "PMAlertController is a great and customizable substitute to UIAlertController"
55
s.description = <<-DESC
66
PMAlertController is a small library that allows you to substitute the uncustomizable UIAlertController of Apple, with a beautiful and totally customizable alert that you can use in your iOS app. Enjoy!

PMAlertController/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>3.1.0</string>
18+
<string>3.2.0</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>

0 commit comments

Comments
 (0)