diff --git a/Example Apps/SPIndicator.xcodeproj/project.xcworkspace/xcuserdata/ivanvorobei.xcuserdatad/UserInterfaceState.xcuserstate b/Example Apps/SPIndicator.xcodeproj/project.xcworkspace/xcuserdata/ivanvorobei.xcuserdatad/UserInterfaceState.xcuserstate index f94d178..955da95 100644 Binary files a/Example Apps/SPIndicator.xcodeproj/project.xcworkspace/xcuserdata/ivanvorobei.xcuserdatad/UserInterfaceState.xcuserstate and b/Example Apps/SPIndicator.xcodeproj/project.xcworkspace/xcuserdata/ivanvorobei.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/SPIndicator.podspec b/SPIndicator.podspec index 9d6f158..7496f91 100644 --- a/SPIndicator.podspec +++ b/SPIndicator.podspec @@ -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 } diff --git a/Sources/SPIndicator/SPIndicator.swift b/Sources/SPIndicator/SPIndicator.swift index 6f74e42..0b39c7f 100644 --- a/Sources/SPIndicator/SPIndicator.swift +++ b/Sources/SPIndicator/SPIndicator.swift @@ -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) } diff --git a/Sources/SPIndicator/SPIndicatorView.swift b/Sources/SPIndicator/SPIndicatorView.swift index 21f90d0..413c66a 100644 --- a/Sources/SPIndicator/SPIndicatorView.swift +++ b/Sources/SPIndicator/SPIndicatorView.swift @@ -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