Skip to content

Commit 1da133b

Browse files
committed
Updated access level for view classes.
1 parent d360697 commit 1da133b

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

SPAlert.podspec

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
Pod::Spec.new do |s|
22

33
s.name = 'SPAlert'
4-
s.version = '5.0.0'
4+
s.version = '5.0.1'
55
s.summary = 'Native alert from Apple Music & Feedback. Contains Done, Heart & Message and other presets. Support SwiftUI.'
66
s.homepage = 'https://github.com/sparrowcode/AlertKit'
77
s.source = { :git => 'https://github.com/sparrowcode/AlertKit.git', :tag => s.version }
88
s.license = { :type => "MIT", :file => "LICENSE" }
99
s.author = { 'Sparrow Code' => '[email protected]' }
1010

1111
s.swift_version = '5.1'
12-
s.ios.deployment_target = '11.0'
12+
s.ios.deployment_target = '13.0'
1313

1414
s.source_files = 'Sources/AlertKit/**/*.swift'
1515

Sources/AlertKit/Views/AlertAppleMusic16View.swift

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import UIKit
22

3-
class AlertAppleMusic16View: UIView {
3+
public class AlertAppleMusic16View: UIView {
44

55
open var dismissByTap: Bool = true
66
open var dismissInTime: Bool = true
@@ -15,7 +15,7 @@ class AlertAppleMusic16View: UIView {
1515
fileprivate var presentDismissDuration: TimeInterval = 0.2
1616
fileprivate var presentDismissScale: CGFloat = 0.8
1717

18-
open var completion: (() -> Void)? = nil
18+
var completion: (() -> Void)? = nil
1919

2020
private lazy var backgroundView: UIVisualEffectView = {
2121
let view: UIVisualEffectView = {
@@ -29,7 +29,7 @@ class AlertAppleMusic16View: UIView {
2929
return view
3030
}()
3131

32-
init(title: String?, subtitle: String?, icon: AlertIcon?) {
32+
public init(title: String?, subtitle: String?, icon: AlertIcon?) {
3333

3434
if let title = title {
3535
let label = UILabel()
@@ -179,7 +179,7 @@ class AlertAppleMusic16View: UIView {
179179

180180
private let layout: AlertLayout
181181

182-
override func layoutSubviews() {
182+
public override func layoutSubviews() {
183183
super.layoutSubviews()
184184
backgroundView.frame = self.bounds
185185

@@ -205,7 +205,7 @@ class AlertAppleMusic16View: UIView {
205205
}
206206
}
207207

208-
override func sizeThatFits(_ size: CGSize) -> CGSize {
208+
public override func sizeThatFits(_ size: CGSize) -> CGSize {
209209
let width: CGFloat = 250
210210
self.frame = .init(x: frame.origin.x, y: frame.origin.y, width: width, height: frame.height)
211211
layoutSubviews()

Sources/AlertKit/Views/AlertAppleMusic17View.swift

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import UIKit
22

3-
class AlertAppleMusic17View: UIView {
3+
public class AlertAppleMusic17View: UIView {
44

55
open var dismissByTap: Bool = true
66
open var dismissInTime: Bool = true
@@ -29,7 +29,7 @@ class AlertAppleMusic17View: UIView {
2929
return view
3030
}()
3131

32-
init(title: String?, subtitle: String?, icon: AlertIcon?) {
32+
public init(title: String?, subtitle: String?, icon: AlertIcon?) {
3333

3434
if let title = title {
3535
let label = UILabel()
@@ -176,13 +176,13 @@ class AlertAppleMusic17View: UIView {
176176
})
177177
}
178178

179-
override func layoutSubviews() {
179+
public override func layoutSubviews() {
180180
super.layoutSubviews()
181181
backgroundView.frame = self.bounds
182182
layout(maxWidth: frame.width)
183183
}
184184

185-
override func sizeThatFits(_ size: CGSize) -> CGSize {
185+
public override func sizeThatFits(_ size: CGSize) -> CGSize {
186186
layout(maxWidth: nil)
187187

188188
let maxX = subviews.sorted(by: { $0.frame.maxX > $1.frame.maxX }).first?.frame.maxX ?? .zero

0 commit comments

Comments
 (0)