diff --git a/SweetAlert.xcodeproj/project.xcworkspace/xcshareddata/SweetAlert.xccheckout b/SweetAlert.xcodeproj/project.xcworkspace/xcshareddata/SweetAlert.xccheckout
new file mode 100644
index 0000000..85da833
--- /dev/null
+++ b/SweetAlert.xcodeproj/project.xcworkspace/xcshareddata/SweetAlert.xccheckout
@@ -0,0 +1,41 @@
+
+
+
+
+ IDESourceControlProjectFavoriteDictionaryKey
+
+ IDESourceControlProjectIdentifier
+ 3EE1B1FE-C3B8-4C71-81DE-A7FB2CF37421
+ IDESourceControlProjectName
+ SweetAlert
+ IDESourceControlProjectOriginsDictionary
+
+ 05630D693F59F7CEDACB6CAB0E4EA0A642C60427
+ https://github.com/bsantanas/SweetAlert-iOS.git
+
+ IDESourceControlProjectPath
+ SweetAlert.xcodeproj
+ IDESourceControlProjectRelativeInstallPathDictionary
+
+ 05630D693F59F7CEDACB6CAB0E4EA0A642C60427
+ ../..
+
+ IDESourceControlProjectURL
+ https://github.com/bsantanas/SweetAlert-iOS.git
+ IDESourceControlProjectVersion
+ 111
+ IDESourceControlProjectWCCIdentifier
+ 05630D693F59F7CEDACB6CAB0E4EA0A642C60427
+ IDESourceControlProjectWCConfigurations
+
+
+ IDESourceControlRepositoryExtensionIdentifierKey
+ public.vcs.git
+ IDESourceControlWCCIdentifierKey
+ 05630D693F59F7CEDACB6CAB0E4EA0A642C60427
+ IDESourceControlWCCName
+ SweetAlert-iOS
+
+
+
+
diff --git a/SweetAlert.xcodeproj/project.xcworkspace/xcuserdata/bernardosantana.xcuserdatad/UserInterfaceState.xcuserstate b/SweetAlert.xcodeproj/project.xcworkspace/xcuserdata/bernardosantana.xcuserdatad/UserInterfaceState.xcuserstate
new file mode 100644
index 0000000..daf26a3
Binary files /dev/null and b/SweetAlert.xcodeproj/project.xcworkspace/xcuserdata/bernardosantana.xcuserdatad/UserInterfaceState.xcuserstate differ
diff --git a/SweetAlert.xcodeproj/xcuserdata/bernardosantana.xcuserdatad/xcschemes/SweetAlert.xcscheme b/SweetAlert.xcodeproj/xcuserdata/bernardosantana.xcuserdatad/xcschemes/SweetAlert.xcscheme
new file mode 100644
index 0000000..32af3dc
--- /dev/null
+++ b/SweetAlert.xcodeproj/xcuserdata/bernardosantana.xcuserdatad/xcschemes/SweetAlert.xcscheme
@@ -0,0 +1,88 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/SweetAlert.xcodeproj/xcuserdata/bernardosantana.xcuserdatad/xcschemes/xcschememanagement.plist b/SweetAlert.xcodeproj/xcuserdata/bernardosantana.xcuserdatad/xcschemes/xcschememanagement.plist
new file mode 100644
index 0000000..d1bbe28
--- /dev/null
+++ b/SweetAlert.xcodeproj/xcuserdata/bernardosantana.xcuserdatad/xcschemes/xcschememanagement.plist
@@ -0,0 +1,22 @@
+
+
+
+
+ SchemeUserState
+
+ SweetAlert.xcscheme
+
+ orderHint
+ 0
+
+
+ SuppressBuildableAutocreation
+
+ 9B4CD1071A06E55200B65DE0
+
+ primary
+
+
+
+
+
diff --git a/SweetAlert/SweetAlert.swift b/SweetAlert/SweetAlert.swift
index d0ac569..97929e5 100644
--- a/SweetAlert/SweetAlert.swift
+++ b/SweetAlert/SweetAlert.swift
@@ -310,24 +310,13 @@ public class SweetAlert: UIViewController {
let previousTransform = self.contentView.transform
self.contentView.layer.transform = CATransform3DMakeScale(0.9, 0.9, 0.0);
- UIView.animateWithDuration(0.2, animations: { () -> Void in
- self.contentView.layer.transform = CATransform3DMakeScale(1.1, 1.1, 0.0);
- }) { (Bool) -> Void in
- UIView.animateWithDuration(0.1, animations: { () -> Void in
- self.contentView.layer.transform = CATransform3DMakeScale(0.9, 0.9, 0.0);
- }) { (Bool) -> Void in
- UIView.animateWithDuration(0.1, animations: { () -> Void in
- self.contentView.layer.transform = CATransform3DMakeScale(1.0, 1.0, 0.0);
- if self.animatedView != nil {
- self.animatedView!.animate()
- }
-
- }) { (Bool) -> Void in
-
- self.contentView.transform = previousTransform
- }
- }
- }
+ UIView.animateWithDuration(1, delay: 0, usingSpringWithDamping: 0.3, initialSpringVelocity: 0, options: nil, animations: {
+
+ self.contentView.transform = previousTransform
+
+ }, completion: { value in
+ // A completion can be added but is not necessary
+ })
}
private struct SweetAlertContext {