Fixed protect level for view.

This commit is contained in:
Ivan Vorobei
2021-05-25 10:02:00 +03:00
parent be35f1b53a
commit dffbaa5298
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|
s.name = 'SPIndicator'
s.version = '1.0.5'
s.version = '1.0.6'
s.summary = 'Floating indicator, mimicrate to indicator which appear when silent mode turn on / off. Support large texts.'
s.homepage = 'https://github.com/ivanvorobei/SPIndicator'
s.source = { :git => 'https://github.com/ivanvorobei/SPIndicator.git', :tag => s.version }
+1 -1
View File
@@ -60,7 +60,7 @@ public enum SPIndicator {
- parameter haptic: Haptic response with present. Default is `.success`.
- parameter completion: Will call with dismiss alert.
*/
public static func present(title: String, message: String?, haptic: SPIndicatorHaptic, completion: (() -> Void)? = nil) {
public static func present(title: String, message: String? = nil, haptic: SPIndicatorHaptic, completion: (() -> Void)? = nil) {
let alertView = SPIndicatorView(title: title, message: message)
alertView.present(haptic: haptic, completion: completion)
}
+3 -3
View File
@@ -23,7 +23,7 @@ import UIKit
#if os(iOS)
class SPIndicatorView: UIView {
open class SPIndicatorView: UIView {
// MARK: - Properties
@@ -302,7 +302,7 @@ class SPIndicatorView: UIView {
}
}
override func sizeThatFits(_ size: CGSize) -> CGSize {
open override func sizeThatFits(_ size: CGSize) -> CGSize {
titleLabel?.sizeToFit()
let titleWidth: CGFloat = titleLabel?.frame.width ?? 0
subtitleLabel?.sizeToFit()
@@ -315,7 +315,7 @@ class SPIndicatorView: UIView {
return .init(width: width, height: areaHeight)
}
override func layoutSubviews() {
open override func layoutSubviews() {
super.layoutSubviews()
layoutMargins = layout.margins