Skip to content

Commit 8cd41df

Browse files
committed
Some minor cleanup
1 parent 2187a0c commit 8cd41df

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

SwiftMessages/Animator.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import UIKit
1010

1111
public typealias AnimationCompletion = (_ completed: Bool) -> Void
1212

13-
public protocol AnimationDelegate: class {
13+
public protocol AnimationDelegate: AnyObject {
1414
func hide(animator: Animator)
1515
func panStarted(animator: Animator)
1616
func panEnded(animator: Animator)
@@ -58,7 +58,7 @@ public class AnimationContext {
5858
}
5959
}
6060

61-
public protocol Animator: class {
61+
public protocol Animator: AnyObject {
6262

6363
/// Adopting classes should declare as `weak`.
6464
var delegate: AnimationDelegate? { get set }

SwiftMessages/TopBottomAnimation.swift

+6-6
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@ public class TopBottomAnimation: NSObject, Animator {
1919

2020
public let style: Style
2121

22-
open var showDuration: TimeInterval = 0.4
22+
public var showDuration: TimeInterval = 0.4
2323

24-
open var hideDuration: TimeInterval = 0.2
24+
public var hideDuration: TimeInterval = 0.2
2525

26-
open var springDamping: CGFloat = 0.8
26+
public var springDamping: CGFloat = 0.8
2727

28-
open var closeSpeedThreshold: CGFloat = 750.0;
28+
public var closeSpeedThreshold: CGFloat = 750.0;
2929

30-
open var closePercentThreshold: CGFloat = 0.33;
30+
public var closePercentThreshold: CGFloat = 0.33;
3131

32-
open var closeAbsoluteThreshold: CGFloat = 75.0;
32+
public var closeAbsoluteThreshold: CGFloat = 75.0;
3333

3434
public private(set) lazy var panGestureRecognizer: UIPanGestureRecognizer = {
3535
let pan = UIPanGestureRecognizer()

0 commit comments

Comments
 (0)