Skip to content

Commit

Permalink
- weak self in DispatchQueue.main.asyncAfter
Browse files Browse the repository at this point in the history
- version bump
  • Loading branch information
pmusolino committed Jan 16, 2018
1 parent b2fd856 commit 75014f5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Library/PMAlertAction.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ import UIKit

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

Expand Down
2 changes: 1 addition & 1 deletion PMAlertController.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "PMAlertController"
s.version = "3.1.0"
s.version = "3.2.0"
s.summary = "PMAlertController is a great and customizable substitute to UIAlertController"
s.description = <<-DESC
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!
Expand Down
2 changes: 1 addition & 1 deletion PMAlertController/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>3.1.0</string>
<string>3.2.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down

0 comments on commit 75014f5

Please sign in to comment.