Fixed protect level for view.
This commit is contained in:
BIN
Binary file not shown.
+1
-1
@@ -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 }
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user