From 585da7cba9e6e53700b337d2fe0cbee9fe01f65d Mon Sep 17 00:00:00 2001 From: Ivan Vorobei Date: Fri, 10 Jan 2020 23:18:19 +0300 Subject: [PATCH] Make dismiss public --- SPAlert.podspec | 2 +- Source/SPAlert/Views/SPAlertView.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SPAlert.podspec b/SPAlert.podspec index 18003e6..db61c95 100644 --- a/SPAlert.podspec +++ b/SPAlert.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = "SPAlert" - s.version = "2.1" + s.version = "2.1.1" s.summary = "Native alert from Apple Music & Feedback. Contains Done, Heart & Message and other presets." s.homepage = "https://github.com/IvanVorobei/SPAlert" s.source = { :git => "https://github.com/IvanVorobei/SPAlert.git", :tag => s.version } diff --git a/Source/SPAlert/Views/SPAlertView.swift b/Source/SPAlert/Views/SPAlertView.swift index ccd438a..cd38f3a 100644 --- a/Source/SPAlert/Views/SPAlertView.swift +++ b/Source/SPAlert/Views/SPAlertView.swift @@ -206,7 +206,7 @@ open class SPAlertView: UIView { /** Use this method for force dismiss controller. By default it call automatically. */ - @objc func dismiss() { + @objc public func dismiss() { UIView.animate(withDuration: 0.2, animations: { self.alpha = 0 self.transform = self.transform.scaledBy(x: 0.8, y: 0.8)