Skip to content

Commit e2680f2

Browse files
committed
Update to 1.0.4
Fix bug with corner radius.
1 parent e48a6df commit e2680f2

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

SPAlert.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22

33
s.name = "SPAlert"
4-
s.version = "1.0.2"
4+
s.version = "1.0.4"
55
s.summary = "Native popup alert similar to Apple Music or Feedback in AppStore app."
66
s.homepage = "https://github.com/IvanVorobei/SPAlert"
77
s.source = { :git => "https://github.com/IvanVorobei/SPAlert.git", :tag => s.version }

Source/SPAlert/SPAlertView.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import UIKit
2424
open class SPAlertView: UIView {
2525

2626
public var duration: TimeInterval = 1.5
27-
public var cornerRadius: CGFloat = 8
2827
public var dismissByTap: Bool = true
2928
public var contentColor: UIColor = #colorLiteral(red: 0.3450980392, green: 0.3411764706, blue: 0.3450980392, alpha: 1)
3029
public var haptic: SPAlertHaptic = .none
@@ -96,7 +95,7 @@ open class SPAlertView: UIView {
9695
private func commonInit() {
9796
self.backgroundColor = .clear
9897
self.layer.masksToBounds = true
99-
self.layer.cornerRadius = self.cornerRadius
98+
self.layer.cornerRadius = 8
10099

101100
self.backgroundView.isUserInteractionEnabled = false
102101
self.addSubview(self.backgroundView)

0 commit comments

Comments
 (0)